They are. Hash maps take an input as a key and run it through a hash function that spits out some large number. The number is then taken modulo the size of the array that the hash map is using. The value to be associated with that key is then inserted at that index of the array. This gives the hash maps really fast accessing times and allows them to act like a set (remembering distinct elements) as well. In short they just map keys to values really fast
@@DarkKnightCookies It might help to compare hash maps with another data structure. One good use of hash maps is the ability to check whether a key is exists within the hash map quickly. This aspect of hash maps is very fast (on average) since all you need to check is whether the key you are looking for exists at the index given by h(key), where h is some hash function (such as h(k) = k mod m, where m is the space allocated for the hash map). On the other hand, checking if an element exists in an array requires you to check each element of the array until you find it, which tends to take much more time.
Once i tried explaining to my girlfriend what my code does and the stuff they make me study and she said “but why would you do these things?” I couldn’t find an answer for that tbh lol
lol @ the hash map jokes ...i have been in the tech industry for 20+ years and I never have to use them... because the clients that pay me only care if it works... ijs... but now I feel like I have been missing out lol
Okay. .. you playing all the rolls in this video got me!!! Love the pinkish white bangs on Nicole. This was a great vid. I subbed because of it. Greetings from San Francisco
A common experience of mine, because I work on Unity C# and, the easiest language to code in is python. So SD's having to grind DSA in the easier language from scratch for a new job. 🤣
For the sweats out there: 594. LONGEST HARMONIOUS SEQUENCE SOLUTION Version: Python 3.7 a = list(map(int,input().split())) a.sort() main = [] for n in range(len(a)): for o in range(len(a)): if a[o] - a[n] > 1: main.append(o-n) break print (max(main))
I feel I can learn through the whole data structure and algorithm after watching your videos
YES YOU CAN
@@nicholast 900 iq
@@nicholast nothing is better than dating myself
@@nicholast lol
Queue hahahhaha. I would definetly give him a chance
Aren't you a man?
@@alex_krumov and? lol
Wahaha ok I am a "girl who codes" and 100% this line would have worked on me
@@larbot3433 if I were a female it would have worked on me too
that's the best low budget woman makeover
That was the funniest part, followed closely by the code humor. Who taught code to be funny? Totally enjoying your vids
I had actually had a date once where the girl set it up on Google calendar and sent me a Google meet invite like it was a fucking interview lmao
Hope you didn't chat on a Google Doc.
howd it go
@@SafeRemain I got a rejection text after worded like it was a job interview too. she was a PM bte
Hashmap is always the solution 😆 good skit
😂😂
“You don’t even study this much for interviews” So relatable for coop lmao 😂
BRO I read this comment at the same time he said it
Remember him telling in a video, whenever you are stuck, just throw a hashmap on the question 😌
He forgot the golden rule
@@nicholast haha😂
Please increase the frequency of your skits Nick. We are willing to see more😀😀
i'll try my best to upload more often :)
"Nicole" XD. Loving the character names. Just when I thought the male ones would run out...
Also, love the face during thought narration at 1:35
fun fact: Nicole's last name is Lis. Nicole Lis.
@@nicholast 🤣👏👏Creative. Well done.
Great vid! I can’t believe its so efficient and memorable to learn from funny videos! Pls make more!
yeah i try to make the vids educational and entertaining so people can remember them!
His skits always crack me up 😂👍
awesome video bro! We need more people to make leetcode fun!
thanks man! looking forward to more of your skits 💯
I need some coder to explain what a hashmap is because watching these videos makes it seem like a cheat code.
They are. Hash maps take an input as a key and run it through a hash function that spits out some large number. The number is then taken modulo the size of the array that the hash map is using. The value to be associated with that key is then inserted at that index of the array. This gives the hash maps really fast accessing times and allows them to act like a set (remembering distinct elements) as well. In short they just map keys to values really fast
yea pretty much what he said- hashmaps allow you to search for items quickly
Wait till you hear of a trie 😏
@@DarkKnightCookies It might help to compare hash maps with another data structure. One good use of hash maps is the ability to check whether a key is exists within the hash map quickly. This aspect of hash maps is very fast (on average) since all you need to check is whether the key you are looking for exists at the index given by h(key), where h is some hash function (such as h(k) = k mod m, where m is the space allocated for the hash map). On the other hand, checking if an element exists in an array requires you to check each element of the array until you find it, which tends to take much more time.
you need to try build any other DS and search vs a hashmap to get linear time. you won't get the dopamine effect unless you had one.
1:30 when you said it at the same time i started dying man. Keep itup
such a coincidence
I knew it was something about the hashmaps! 😂😂😂
Fun one!!!
Waiting for more✨
coming soon :)
the amount of mini subtle jokes in this video is insane.
glad you noticed them :)
"its a match? oh nice, i've never seen this before"😂😂😂
As a film major I don’t know how I got here, nor do I understand what’s going on. Great cinematography tho
What I learned from this:
If I ever gonna join a dating site, I’ll create to profiles so that I can match with myself
Mark my words - You are gonna hit 3 million sub in no time (eventhough i think those who know programming will sub to the channel)
At least let him get to 100k then 250k then 500k then 1 mil and so on. You're thinking too far ahead.
thanks for the support :)
i'm just trying to hit 100k first so i can get the silver play button ▶
@@LDarlong He can use hashmap for better efficiency
Queue that was a good one buddy 😂😂😂😂
"it's a matchhhh wow never seen before"
are matches a new feature? this is my first time seeing one
@@nicholast Nicholas replied to me 😳
Pip install happiness ^_^
Nick your videos are actually amazing, love them and watch them on repeat
glad you like them :)
This is so good. I can't wait for more 🔥
You should do a vid on what branchless coding is like for first timers!
0:58 Antarctica lol
Once i tried explaining to my girlfriend what my code does and the stuff they make me study and she said “but why would you do these things?” I couldn’t find an answer for that tbh lol
LMAO loved the tinder pic for "Nicole"
such a cutie
1:30 lol “play it cool…” also it was hilarious how you read the whole problem description
The Big Time Rush really encapsulated this video like those cheesy computer science pick up lines XD
I learned more about data structures in this video then I ever did in college
lol @ the hash map jokes ...i have been in the tech industry for 20+ years and I never have to use them... because the clients that pay me only care if it works... ijs... but now I feel like I have been missing out lol
Okay. .. you playing all the rolls in this video got me!!! Love the pinkish white bangs on Nicole.
This was a great vid. I subbed because of it.
Greetings from San Francisco
Damn! My boy Nick got game!!!
"I have a match, never seen that before" lol
I want to know the origin of the towel on the head being a universal sign of a female character 😂
0:58 best submission ever
Pure gold! Well done Nicolas
Nice
Waiting for your video for some time. And you didn't fail making a great video! love your videos, keep it up!
yea it's been a while since i last uploaded oops
glad you liked the vid :)
this hookline is just genius 😂
0:55 That two sum implementation is certainly a choice. 😬
Wow it's my first time watching your vedio this early. I like that cutie pun (eventhough i doesn't know what that is).
Output = "Antarctica", Expected = 5
LMAO
that's when u know ur code sucks
so wholesome.
Dude, that towel handkerchief.❤
i love these so much
good one :)
cant wait for the next
appreciate it :)
Lol this skit🤣 love it
this is the guy you watch when your studying isnt going well
Another banger as always
ayy
My reaction to Queue omg.
sold.
This is so cringe but also what I need in my life 😅😅 So, God I see what u did for others 🙏
"
Output : Antarctica
Expected : 5
"
Also, fun fact, that's the first question they did
Kudos to all who paused the video and started thinking of a solution and then gave up 😆😆
0:37 Sure, some dp?
But do not use namespace from c++!
Good video as always!
It’s always a damn hashmap 😩😂
This is a banger
what a video XD will surely try this and let you know !
haha good luck
you rockk !!
A common experience of mine, because I work on Unity C# and, the easiest language to code in is python. So SD's having to grind DSA in the easier language from scratch for a new job. 🤣
For the sweats out there:
594. LONGEST HARMONIOUS SEQUENCE SOLUTION
Version: Python 3.7
a = list(map(int,input().split()))
a.sort()
main = []
for n in range(len(a)):
for o in range(len(a)):
if a[o] - a[n] > 1:
main.append(o-n)
break
print (max(main))
This is amazing 😂
"Remember, if you ever get stuck, throw a hashmap."
When you get a problem, let's throw a hashmap =)))
Your name should be Nicholas
big time rush outro!
Nice man
What if we merged our code and there were no compile errors? 👉👈
Nick bro, you are dope.
no u
But hash map can not guarantee the worst time complexity and I will choose map :)
I clearly need to learn what a hash map is
Actually my ideal date...lol
Need moree! 🤣
Ben Awad's VSCode Extension: 'Am I joke to you?'
Vsinder haha
what app you are using? I need to find my leetcode date as well.
bro i hate to use other codes or libraries unless it is very nessasary and out of my knowledge scope (i like to build my own things of code)
It is always a hashmap
No way you said Queue😭😭
Lmao the solutions
🤣🤣🤣🤣me right now on dates.
Moral of the story : Recursion (sucks(Recursion)) ;
Gotta try such leetcode dates with my future dates🤭
pls let me know how it goes
I have no clue what the end was but it was funny
Nick really thought he did something with his silly O(n logn) solution when you could just use a hashmap to achieve O(n) time complexity
Hash maps are the best!
we need part two!
0:55 Using n^2 complexity. I would be calling a raincheck.
Antarctica LMFAOO
I thought you would solve the '3-sum' :)
@0:58 output is "Antarctica"🤣
The most accurate part is that he plays as the girl to make this video
Nice one :)
you can argue you use less space
Just pretend it's an interview. lol. good one.
People preferring hashmaps aren't to be trusted Nick
0:58
Output - Antarctica
Expected - 5
ek aisi date tho mri bhi deserve karthi hum😢😢😢
translation : i too deserve a date like this mannnn😢😢😢
queue omd
It's always a hashmap, isn't it :P