Remove Element - Leetcode 27 - 2 Pointers (Python)

  Рет қаралды 4,340

Greg Hogg

Greg Hogg

Күн бұрын

Пікірлер: 13
@GregHogg
@GregHogg 4 ай бұрын
Master Data Structures & Algorithms for FREE at AlgoMap.io/
@johnhyde9048
@johnhyde9048 4 ай бұрын
Dude!! Your explanation is awesome please continue to do the same 😄
@MoTosifAnsari-y9e
@MoTosifAnsari-y9e Ай бұрын
Thank you for the playlist bro it's really helpful 🙌
@thiagoribs295
@thiagoribs295 Ай бұрын
Hardest part is to understand what to return. Does it want a int? a list? By seeing the Output in the descrpition it looks like it want both, but the function asks for a int.
@vadymchecherinda2858
@vadymchecherinda2858 4 ай бұрын
For me the most complicated part is how to come to this solution. I mean algorithm. For me its not obvious. This is the most hard part.
@GregHogg
@GregHogg 4 ай бұрын
Yeah for sure
@16gowtham.s28
@16gowtham.s28 Ай бұрын
Your awesome let's continue
@mohammadrafi895
@mohammadrafi895 4 ай бұрын
Awesome!
@Insigna2382
@Insigna2382 4 ай бұрын
why isnt n initialized to len(nums)-1?
@sriramedit659
@sriramedit659 2 ай бұрын
why n initialized to len(nums)-1
@towersong
@towersong Ай бұрын
Time Limit Exceeded
@memelover89
@memelover89 4 ай бұрын
while val in nums: nums.remove(val) k=len(nums) return k What about this Solution?? 👆☝
@coblt1293
@coblt1293 3 ай бұрын
the time taken is slightly higher and sometimes they might ask you to not to use inbuilt functions (like remove) to understand your knowledge over the data structures. ( your solution is completely right no doubt about it but sometimes the interviewer might ask you to do it without the inbuilt function and do the same problem to know your understanding over the concept. )
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 746 М.
Why is everyone LYING?
7:56
NeetCodeIO
Рет қаралды 373 М.
Largest Rectangle in Histogram - Leetcode 84 - Stacks (Python)
10:59
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 288 М.
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 330 М.
These coding projects give you an unfair advantage
8:13
Jason Goodison
Рет қаралды 1,1 МЛН
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 349 М.
Recursive Backtracking - DSA Course in Python Lecture 14
12:58
Majority Element - Leetcode 169 - Python
14:39
NeetCode
Рет қаралды 114 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН