BACK!!! 260. Single Number III | bit manipulation | leetcode daily challenge | DSA | Hindi

  Рет қаралды 872

shashCode

shashCode

Күн бұрын

Пікірлер: 9
@VaibhavSingh-kh3jr
@VaibhavSingh-kh3jr 5 ай бұрын
We are interested to get new knowledge from you after taking a long break 😂❤❤
@PiyushSharma-we8yd
@PiyushSharma-we8yd 5 ай бұрын
shashwat bhaiya has become a part of my daily routine. Jai ho bhaiya. love you
@adhbhutcomedy6496
@adhbhutcomedy6496 5 ай бұрын
Bhaiya, I noticed that I have become too dependent on you because you did not upload the problem for some days, I had a lot of problem in solving it. And thanks a lot for uploading the problem today.
@nikhilaggarwal9325
@nikhilaggarwal9325 5 ай бұрын
Great content!
@mr.nishantawasthi4402
@mr.nishantawasthi4402 5 ай бұрын
Thanks sir
@chinubunny9974
@chinubunny9974 5 ай бұрын
Bhaya aaj late video aa rhi ?
@hello-my4yh
@hello-my4yh 5 ай бұрын
doubt: I write this code in cpp but it gives runtime error on test case 8 because the array is [1,1,0,-2147483648] . So answer of the finalxor becomes -2147483648 . And when i try to find mask we have to substract from -1, Which becomes -2147483649 and this number is outside the range of signed integer . I solved the issue by explicitly type cast to long data type. But the doubt is -Why the same code is working in java? But not in cpp? -Range of integer is same for both languages? - cpp and java both can implicit type cast data type so why the error in cpp?
@shashwat_tiwari_st
@shashwat_tiwari_st 5 ай бұрын
See. Theoretically cpp and java will have same int range. But java is always fixed where as in cpp it depends on the architecture. So java is always 32 bit whereas cpp can be 16 bit or 32 bit depending on the leetcode server where your code ran... this is their mistake. They should taken care of this part.
@hello-my4yh
@hello-my4yh 5 ай бұрын
@@shashwat_tiwari_st Thank you for this information and amazing video.😀
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 96 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3 МЛН
L7. Single Number III | Bit Manipulation
24:03
take U forward
Рет қаралды 57 М.
LeetCode | 3133. Minimum Array End | Bit Manipulation
20:45
How I Mastered Data Structures and Algorithms in 8 Weeks
15:46
Aman Manazir
Рет қаралды 95 М.
Single Number II | 4 Methods | Leetcode #137
14:04
Techdose
Рет қаралды 71 М.
L5. Single Number-I | Bit Manipulation
7:12
take U forward
Рет қаралды 44 М.
Single Number III | leetcode 260 | Hindi
24:10
Codebix
Рет қаралды 6 М.