1072. Flip Columns For Maximum Number of Equal Rows | HashMap | Strings

  Рет қаралды 2,025

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 7
@vancedutube7620
@vancedutube7620 5 күн бұрын
I like how you addressed the complement by generating a sequence of true and false. This was something new for me.
@TilakrajDixit
@TilakrajDixit 5 күн бұрын
you can use XOR as well , for example string 1-> 0101 and string 2-> 1010 , then by using XOR of first element with all other in that row will create something like this , 1^1=0 , 1^0=1 , 1^1=0 and 1^0=1 , so string 2 is now 0101 which is now similar to string 1 . now just use the magic of hashmap and your code will run . HAPPY CODING
@vancedutube7620
@vancedutube7620 4 күн бұрын
@TilakrajDixit Hey thanks for explaining this approach, but how did you come up that you want to xor first element with the all the other elements?
@anuragsekhri2315
@anuragsekhri2315 5 күн бұрын
explained well bro
@goldenx2417
@goldenx2417 5 күн бұрын
Bhaiya please write code in cpp also
@motivationalshorts393
@motivationalshorts393 5 күн бұрын
brother comment section me code provide kr diya kro jisse other language valo ko problem n ho smjhne me
@TilakrajDixit
@TilakrajDixit 5 күн бұрын
class Solution { public: int maxEqualRowsAfterFlips(vector& mat) { unordered_mapmp; int row=mat.size(); int col=mat[0].size(); for(int i=0;i
1861. Rotating the Box | Simulation | 2 Pointers
17:00
Aryan Mittal
Рет қаралды 947
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 235 МЛН
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 36 МЛН
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 3 МЛН
Flip Columns For Maximum Number of Equal Rows | Leetcode 1072
16:45
RAGHU REACTS TO ROADIES MEMES
28:27
Tanmay Bhat
Рет қаралды 3,6 МЛН
C Programming Tutorial for Beginners
3:46:13
freeCodeCamp.org
Рет қаралды 14 МЛН
773. Sliding Puzzle | BFS | Graph Traversal | Matrix | Array
15:06
Aryan Mittal
Рет қаралды 1,9 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 235 МЛН