@greghogg5: Don't Make This Coding Interview Mistake! Jewels and Stones - Leetcode 771 Crack big tech at algomap.io! #coding #leetcode #programming #interview

Greg Hogg
Greg Hogg
Open In TikTok:
Region: CA
Friday 25 April 2025 15:03:49 GMT
14444
599
15
19

Music

Download

Comments

myko101ab
Michael Barrowman :
You don't need to put jewels through an iterator when converting it to a set
2025-04-25 16:26:02
9
fpschess8
fpschess8 :
great example of why abstraction is bad
2025-04-28 14:14:57
0
shavixinio
Shavix :
I've seen easier questions
2025-04-26 06:33:30
0
jmeyer2030
Jmeyer2030 :
To avoid the set class, you can make a Boolean array of size 52 for jewels, iterate through jewels, and set true to the index of char - ‘a’. Then loop through stones, increment if arr[char-‘a’]
2025-04-25 21:47:50
0
saaaamayoa
José :
I didn’t understand anything but paying attention haha🗿🗿🗿
2025-04-25 15:14:09
2
failw1zard
Eric Orr :
I feel like this is over-complicating a frequency count.
2025-05-03 00:59:06
0
johnvandivier
Ladderly.io -Land a Coding Job :
W bro
2025-04-26 02:01:35
0
belphhh
lmao :
so first solution checks for substring in jewels string that's why it has o(n) time but checking for the character in a set would be o(1) time
2025-04-25 15:21:39
1
orion_azure
orion :
what coding interview ask about it? if they ask you this kind of questions - be sure, they just do not want to hire you
2025-04-26 05:39:30
1
husseinmohamed2030
Hussein Mohamed Omar :
🔥🔥🔥
2025-04-25 15:30:36
0
cosmic8080
cosmicricey :
you could also use a regex
2025-04-27 22:06:44
0
To see more videos from user @greghogg5, please go to the Tikwm homepage.

Other Videos


About