Remove Duplicates from Sorted Array 2 | Leetcode 80 | Top 150 Interview questions series

  Рет қаралды 17,499

Technosage

Technosage

Жыл бұрын

Top 150 interview question series
Remove Duplicates from Sorted Array 2
Leetcode problem number 80
JAVA interview programming playlist:
• Interview Programming ...
Git Repo:
github.com/Technosagelearning...

Пікірлер: 26
@muhammadomersaleem4919
@muhammadomersaleem4919 2 ай бұрын
Explanation is different from the code solution. If n == nums[i-2], 'i' doesn't increment in the code but in the explanation.
@dineshvasireddy
@dineshvasireddy 5 ай бұрын
Great intuition and the approach was perfect comparing to the complex Leetcode editorial approaches.
@mayukh_
@mayukh_ 13 күн бұрын
Essentially this not in constant space. Because in the for loop, you are creating another copy for the array.
@user-bl1gg1ff1q
@user-bl1gg1ff1q 6 ай бұрын
class Solution { public int removeDuplicates(int[] nums) { int c=0; for(int i=0;i
@oxanasf6369
@oxanasf6369 Жыл бұрын
Wow, what a great explanation and a beautiful algorithm!
@ShubhamKumar-yz2yz
@ShubhamKumar-yz2yz Жыл бұрын
Amazing, very easy explanation, thank you
@nazim4525
@nazim4525 Жыл бұрын
I love your teaching style
@JackCoderr
@JackCoderr 6 ай бұрын
best explaination and clear mam, thank you so much mam
@bobosian
@bobosian Жыл бұрын
Crazy. Good job there.
@gurudassulebhavikar
@gurudassulebhavikar 7 ай бұрын
Hey Amrita can you please finish this playlist? Not sure why you stopped making videos on this 150 interview question series. But out of all the channels on youtube I found only this channel where I was able to understand the solutions easily. Please continue making more videos. 🙏 Thank you.
@TechnosageLearning
@TechnosageLearning 7 ай бұрын
Hello, I am glad to know that the solutions presented here helped you. Due to some medical emergency we have reduced the pace, soon will start working on more solutions. please stay tuned. Thankyou for the understanding. 🙏
@ChaudharySaab05
@ChaudharySaab05 Жыл бұрын
Well Explained dear
@avanishkumar1689
@avanishkumar1689 8 ай бұрын
good sol and well explained
@vivekmalviya3036
@vivekmalviya3036 2 ай бұрын
Thank u ❤❤❤
@jason-rv5sp
@jason-rv5sp Ай бұрын
Great explanation. the key point is nums[i] != num[i-2]. But why in the code it becomes n != nums[i-2] ?
@vinayvardhanyt2415
@vinayvardhanyt2415 7 ай бұрын
In interviews they are going to ask in place modification of the array.
@saurabhvishwakarma9193
@saurabhvishwakarma9193 10 ай бұрын
great
@codingbitsnbytes
@codingbitsnbytes 7 ай бұрын
Mam, it would be great if you give your linkedin profile in the description, and also tell your full name, it would help to make connection
@KRRSPORTS
@KRRSPORTS 2 ай бұрын
if array is like that 1 2 3 4 4 4 5 5 6 in that what about 2 element
@DeepakSingh-li1oe
@DeepakSingh-li1oe 2 ай бұрын
respect++
@AyushTiwari-vv2xk
@AyushTiwari-vv2xk Жыл бұрын
mam why this solution not working class Solution { public int removeDuplicates(int[] nums) { int j=0; for(int i=0;i
@vikeshkumarmahto16
@vikeshkumarmahto16 8 ай бұрын
class Solution { public: int removeDuplicates(vector& nums) { int j=2; int k=nums.size(); if (k
@vikeshkumarmahto16
@vikeshkumarmahto16 8 ай бұрын
@@Sowmyakotha-lj8te see the code I will do it same
@mohammedmusaib4489
@mohammedmusaib4489 7 ай бұрын
bro because we not exactly comparing i with previous i-2 element
@surajsidar2294
@surajsidar2294 4 ай бұрын
@@mohammedmusaib4489 for this test case [1,1,1,2,2,3] if you compare with i-2 it won't work. You have to compare with j-2
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 76 МЛН
Cat Corn?! 🙀 #cat #cute #catlover
00:54
Stocat
Рет қаралды 15 МЛН
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 64 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 167 МЛН
Remove Duplicates from Sorted Array II - Leetcode 80 - Python
12:19
Remove Duplicates from Sorted Array II | Leetcode 80 | Array
11:29
Ayushi Sharma
Рет қаралды 35 М.
SQL Interview questions | Data Analyst | Part - 1
11:56
The ML Mine
Рет қаралды 5 М.
LeetCode Remove Element Solution Explained - Java
6:21
Nick White
Рет қаралды 34 М.
Two Sum problem | Leetcode problem 1
8:20
Technosage
Рет қаралды 13 М.
Remove Duplicates from Sorted Array - Leetcode 26 - Python
10:38
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,8 МЛН
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 1,9 МЛН
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 375 М.
Это Xiaomi Su7 Max 🤯 #xiaomi #su7max
1:01
Tynalieff Shorts
Рет қаралды 1,1 МЛН