H Index - Leetcode 274 - Arrays & Strings (Python)

  Рет қаралды 6,365

Greg Hogg

Greg Hogg

Күн бұрын

Пікірлер: 25
@GregHogg
@GregHogg 2 ай бұрын
Master Data Structures & Algorithms for FREE at AlgoMap.io/
@alisheheryar1770
@alisheheryar1770 10 күн бұрын
Good job of Brute Force and Optimal solution.
@xAllaboutx
@xAllaboutx 9 күн бұрын
nice, I have got: "Beats 91%" with this, I kept using the n variable, skipping the h variable, no need for h = n
@spacetime_wanderer
@spacetime_wanderer 2 ай бұрын
Amazing explanation Greg! You helped me to build my intuition. Subscribed!
@mohammadrafi895
@mohammadrafi895 2 ай бұрын
I think both Array and DP problems are equally hard. In DP, you have to catch the pattern which is the hardest bit. And for array problems, you never know when any concept out of the blue can be applied like Counting Sort.
@survivourff7014
@survivourff7014 2 ай бұрын
Your dsa videos are really good…pls try to cover all the topics bro
@dreadknot66
@dreadknot66 2 ай бұрын
Hey, Greg! Great explanation. Can you please make a video on LRU Cache?
@AdoniyasGetnet
@AdoniyasGetnet 2 ай бұрын
class Solution: def hIndex(self, citations): citations.sort(reverse=True) print(citations) j=0 n=len(citations) for i in citations: if i>j: j+=1 return j
@edwinantonius63
@edwinantonius63 2 ай бұрын
I like this solution, my initial gut feeling made me thing about creating a dictionary of citation counts paired with a rank....
@HùngTô-i4d
@HùngTô-i4d 14 күн бұрын
Thanks
@ackeman9386
@ackeman9386 2 ай бұрын
Teaching me as if I were dumb. I love that!
@GregHogg
@GregHogg 2 ай бұрын
This one is pretty tricky so I had to really dumb it down lol
@CyrusWong-yq4uw
@CyrusWong-yq4uw 2 ай бұрын
Hi Greg, can you please upload a tutorial about Leetcode Question 34 Find First and Last Position of Element in Sorted Array? I am struggling on it and I need some help. Thank you so much !
@GuilhermeDugaichdeOliveira
@GuilhermeDugaichdeOliveira 2 ай бұрын
Great one! What is the app you use for drawing?
@chisomedoka5651
@chisomedoka5651 23 күн бұрын
Mira
@sharpiemaster7351
@sharpiemaster7351 2 ай бұрын
What drawing software do you use?
@survivourff7014
@survivourff7014 2 ай бұрын
Bro…pls make a video on bit manipulation
@adithyar3160
@adithyar3160 2 ай бұрын
hi @gregg buddy, can you do a video on LRU cache. Thank you in advance.
@GregHogg
@GregHogg 2 ай бұрын
Okay I'll try
@mohammadrafi895
@mohammadrafi895 2 ай бұрын
You should start teaching online officially.
@GregHogg
@GregHogg 2 ай бұрын
What does that mean exactly haha
@mohammadrafi895
@mohammadrafi895 2 ай бұрын
@@GregHogg Like starting your website where you offer paid courses. :)
@mohammadrafi895
@mohammadrafi895 2 ай бұрын
@@GregHogg You have the most articulate way of teaching. I've seen any tutors that teach so elegantly. I'd love to see your courses where you go in-depth about concepts.
@freesoftwares6042
@freesoftwares6042 Ай бұрын
oki got thru this , but how tf a test case [11,15] is supose to return 2 , is leetcode drunk orsomething?
@ardenmatikyan9658
@ardenmatikyan9658 Ай бұрын
There are 2 papers with at least 2 citations. The max h is 2
Add Binary - Leetcode 67 - Bit Manipulation (Python)
8:20
Greg Hogg
Рет қаралды 4,6 М.
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 23 МЛН
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Triple kill😹
00:18
GG Animation
Рет қаралды 17 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 653 М.
How He Got $600,000 Data Engineer Job
19:08
Sundas Khalid
Рет қаралды 152 М.
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,9 МЛН
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
Reacting to Controversial Opinions of Software Engineers
9:18
Fireship
Рет қаралды 2,1 МЛН
My Brain after 569 Leetcode Problems
7:50
NeetCode
Рет қаралды 2,7 МЛН
Merge Sorted Array - Leetcode 88 - Arrays & Strings (Python)
6:08
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 23 МЛН