How to remove duplicates from the sorted array?🧐.

preview_player
Показать описание
How to remove duplicates from the sorted array?
Removed duplicates from sorted array?
Remove duplicated from sorted array program
How to remove duplicated from sorted array in Java?
Remove duplicates from sorted array programming logic
logic to remove duplicates from sorted array
#technology #techreview #technews #smartphone #techtips #techyoutuber #mobile #techie #youtube
#youtuber #subscribe #youtubelikes #youtubevide #youtubemarketing #youtubeviews #instavideo
#instayoutube
Рекомендации по теме
Комментарии
Автор

Very easy to understand ...
After explaining, kindly display the coding also sir

gamifycoding
Автор

After seeing your videos, I'm Addicted to coding which I never liked before..

nithya
Автор

This will only work if duplicate is just the next one what about duplicates are at random index ?

testingvinod
Автор

Okay this logic ok when you don't need output in ordered way.. means 112234 ->1234 ..but what if input is 123231..will get unordered output ->321 ...but actual order we want is-> 123

sbharathi
Автор

simplest ans is store the array in map and display .first because map always gives the unique values( by the way nice way of teaching )

Randomboy-gw
Автор

What if the duplicate value is a different index like one is 2 index and second one is Last index so how can compare these different index values

arjunreddy
Автор

This helped me think through a problem for my job… and I feel like it was quite helpful.

Thanks, dude in the video!!

semiprolific
Автор

What happens if the last element was 1 instead of 5🤔

AliAkbar-bzzz
Автор

What if 2 and 2 are not present adjacent to each other same for 4, 4

sumitkumar-nzgd
Автор

What if 1 duplicate is at last it doesn't work

mohammedmujahidabbas
Автор

But ar2 will have 2 spaces left so garbage value will occupy So how to avoid this problem?! Please answer 😅❤

ssjsjswkke
Автор

How to remove without using extra space?

BloodMista
Автор

This is only for the sorted array… please correct your title or say in video that it works only for sorted array

codeheaven
Автор

We can solve Without using Additional array

whatsappfunnyvideo
Автор

Sir aapki movement mujhe ladki ki tarah kyu lag rahi hai 👀🥲

ogive
Автор

Please tell me how to remove duplicate from {1, 2, 2, 3, 1, 4, 4} this array...

dhanajidongare
Автор

But what if there is a duplicate element occuring more than 1 Time?

dheerajparmar
Автор

Agar dublicate item 2nd or 5th position per ho to ye trick ki to waat lag jaegi
😂😂
Like comment for ans

proeditz
Автор

gujrati ma bolne bhai indian thai english ne mahtv deso jay rajiv dixit

TakshPethani
Автор

Here's my c++ code:
#include <bits/stdc++.h>
using namespace std;

int main()
{
int arr[]={1, 2, 3, 5, 5, 6, 7, 7, 8};//sort it before delete duplicates
vector<int> v;
int j=0;
for(int i=0;i<9;i++)
{
if(arr[i]!=arr[i+1])
{
v.push_back(arr[i]);
}
}
for(int i=0;i<v.size();i++)
{
cout<<v[i]<<" ";
}
return 0;
}

Sarath