Find The Element That Appears Once In An Array Where Every Other Element Appears Twice in Java

preview_player
Показать описание
#java #javatutorials #deepak #smartprogramming
📞 For more details Call or What's App : +91 98887-55565

------------------------------------------------------------------------------------------

#ArraysInJava #SingleDimensionalArray #MultiDimensionalArray #java #hindi #deepak #JavaTutorials #DeepakPanwar #OnlineTraining #OnlineClasses
Find the element that appears once in an array,
Find the element that appears once where every other element appears twice,
java program to find unique or non repeated elements in an array,
Find the number which occurs odd number of times in an Array,
Find the first repeating element in an array of integers,
Find duplicate element from an array in Java || Interview Program,
How to print duplicate Elements in ArrayList in Java Tutorial,
Find First Duplicate Element in an Array in Java (Hindi),
Find Duplicate Elements in an Array in Java (Hindi) || Using 3 Different Ways

------------------------------------------------------------------------------------------

Follow Me On Social Media :-
Рекомендации по теме
Комментарии
Автор







▶ Core Java Chapter-wise Playlist ◀




▶Advance Java Chapter-wise Playlist ◀

SmartProgramming
Автор

Sir, Your explannation in all videos are really appreciable♥️

techtanzeel
Автор

Hello sir suppose if a element is present thrice then how would you cancel it with XOR like (5^5)=0 but if 5 is present three times then how it get cancelled explain please

sachinraj
Автор

Outstanding.Very simple and clear.Hats-off Deepak.

jajatibehera
Автор

one of the greatest explanations i have seen thank you sir

saichaithrik
Автор

Bahut se accha to yahi samajh me aata hai🤗🤗

RANGER_Rajat
Автор

Sir, you explain very well.. Thank u so much

Vicky-jqff
Автор

Hello Sir,
If i write two not repeated number in array this program gives different output.
int[] a={1, 5, 4, 10, 3, 2, 5, 4, 3, 2};
int res=a[0];
for(int i=1;i<a.length;i++)
{
res=res^a[i];
}
System.out.println("First not repeated element is"+res);



output is::
First not repeated element is11
Duplicate Element is : 5

nitishchauhan
Автор

sir...please make video on string permutation..

palvinderkaur
Автор

That xor logic will not apply for the array which contains more than two different elements rights ?

omkarhandrale
Автор

Hello Sir,
I love to learn your programming code and idea but in interview they are asking without using predefined method and function library.
W.a.p to reverse a string without using predefined method and functional library .pls help me interviewer also gave me hints like you can use ASCII code. But how ?

saumendrasahu
Автор

Sir, 2yrs ho gaye ab tak collections(hashmap, set) pe video nai aayi.Plss update dijiye current

vishalghanghav
Автор

Hello sir !
Agar ek sae jaada numbers ek hi baar ho toh kaisae Katanga ?

ranjitkumarshaw
Автор

plz functions or methods and string manipulation pe jaldi se video banao plz sir olz

ayaankhan
Автор

sir please make video on asp.net language

kashifmehmood
Автор

Sir kya ye xor string me bhi kaam karega

RANGER_Rajat
Автор

You can simply use Hass set it is to complicated solution

sachinbhalla
Автор

What if there are 2 non repeating no.?

Vicky-jqff
Автор

sir in array if we use two-digit no then output is 48 which is not present in the array
public class once
{

public static void main(String[] args)
{
int a[]= {23, 43, 23, 44, 22, 34, 34, 33};
int res=a[0];
for(int i=1;i<a.length;i++)
{
res=res^a[i];
}
System.out.println("Once elemtny is "+res);
}

}



output is 48

mdimamulansari