Count Triplets That Can Form Two Arrays of Equal XOR

  Рет қаралды 9,396

Fraz

Fraz

Күн бұрын

Пікірлер: 11
@mohammadfraz
@mohammadfraz 4 жыл бұрын
There is a correction, the final approach is O(N^2) and not O(N).In case when we have [0,0,0,0] we will have to go through all the indexes each time, this will make it O(N^2)
@JUSTcode00
@JUSTcode00 6 ай бұрын
and brute force will take o(n^3) ig
@namanmittal9403
@namanmittal9403 4 жыл бұрын
I am unable to understand why we have a triplet from 1 to 2 i.e 1,2,2 because cumulative XOR at both index 0 and 2 is 1 and you said if cumulative is 0 then only triplet from i+1 i.e 1 to 2 possible, please help me understand.
@arpittiwari6590
@arpittiwari6590 4 жыл бұрын
Where do you learn these concepts please tell us
@ratnasanjay
@ratnasanjay 2 жыл бұрын
Thankyou bhaiya for this session
@aryan__o
@aryan__o Жыл бұрын
Thank you Sir 😘
@chenjieY-z3q
@chenjieY-z3q 6 ай бұрын
somebody please do the O(n) solution explanation, the editorial makes no sense
@subhambanerjee6334
@subhambanerjee6334 4 жыл бұрын
Did you solved the 3rd one
@mohammadfraz
@mohammadfraz 4 жыл бұрын
Yes, it was simple DFS. Could not make the video though.
@subhambanerjee6334
@subhambanerjee6334 4 жыл бұрын
@@mohammadfraz okay bro thank you
@adityajangid3528
@adityajangid3528 6 ай бұрын
accent??
Pseudo Palindromic Paths in a Binary Tree
6:11
Fraz
Рет қаралды 2 М.
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
Counting the triplets
14:16
Techdose
Рет қаралды 66 М.
Reality of my 62LPA package
10:06
Fraz
Рет қаралды 487 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
Brian Will
Рет қаралды 2,1 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 30 МЛН
Winning Google Kickstart Round C 2020
30:57
William Lin (tmwilliamlin168)
Рет қаралды 4 МЛН