Find the Difference | LeetCode 389 | C++, Java, Python | BITWISE operation

  Рет қаралды 5,822

Knowledge Center

4 жыл бұрын

LeetCode Solutions: kzbin.info/aero/PL1w8k37X_6L86f3PUUVFoGYXvZiZHde1S
Github Link: github.com/KnowledgeCenterKZbin/LeetCode/blob/master/389_Find_the_Difference
**** Best Books For Data Structures & Algorithms for Interviews:**********
1. Cracking the Coding Interview: amzn.to/2WeO3eO
2. Cracking the Coding Interview Paperback: amzn.to/3aSSe3Q
3. Coding Interview Questions - Narasimha Karumanchi: amzn.to/3cYqjkV
4. Data Structures and Algorithms Made Easy - N. Karumanchi: amzn.to/2U8FrDt
5. Data Structures & Algorithms made Easy in Java - N. Karumanchi: amzn.to/2U0qZgY
6. Introduction to Algorithms - CLR - Cormen, Leiserson, Rivest: amzn.to/2Wdp8rZ
*****************************************************************************
September LeetCoding Challenge | Problem 24 | Find the Difference | 24 September,
Facebook Coding Interview question,
google coding interview question,
leetcode,
Find the Difference,
Find the Difference c++,
Find the Difference Java,
Find the Difference python,
Find the Difference solution,
389. Find the Difference,
#CodingInterview #LeetCode #Google #Amazon #BitManipulation

Пікірлер: 17
@moayyadarz2965
@moayyadarz2965 4 жыл бұрын
you have a really good and wide experience in this area I really like your way of handling this problem
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
Glad you enjoy it!
@meenumalik5439
@meenumalik5439 4 жыл бұрын
Can be done using '+' and '-' in single loop: char findTheDifference(string s, string t) { char c = 0; for (int i=0; i
@yourfriend988
@yourfriend988 3 жыл бұрын
Good solution. Thanks for sharing.
@surajkiranreddymothe686
@surajkiranreddymothe686 4 жыл бұрын
Thanks a Lot for Starting the Series Again.
@vornamenachname594
@vornamenachname594 Жыл бұрын
it's incredible how the youtube subtitle generator actually understands him and translates it correctly. Yet I noticed that it struggles to translate a Dutch accent or an accent from Belgium, although it is very close to actual English. Maybe due to a smaller sample?
@KnowledgeCenter
@KnowledgeCenter Жыл бұрын
Haha. Not sure, why it happens.
@pleasesirmorevideos4684
@pleasesirmorevideos4684 4 жыл бұрын
i dont know how that c++ code is working can you please explain? not the xor concept but how actually c++ changes from char to int and vice versa
@KnowledgeCenter
@KnowledgeCenter 4 жыл бұрын
In C++ you can treat a char as int while applying any mathematical operator. Chars will be treated as their ascii values. e.g., 'a' = 97, 'b' = 98, ... So, 'a' + 10 = 107. So, we apply xor(^) on chars just like int.
@pleasesirmorevideos4684
@pleasesirmorevideos4684 4 жыл бұрын
@@KnowledgeCenter ohhh greattt
@mandeep2192
@mandeep2192 4 жыл бұрын
@@KnowledgeCenter i understand this..but not able to understand the code still..SPECIALLY THE FOR CONDITIONS STATEMENT
@veipuniilana1842
@veipuniilana1842 2 жыл бұрын
char c = 0; what does that impies? cant i just define it without initializing ?
@devbhattacharya153
@devbhattacharya153 2 жыл бұрын
Thanks sir
@KnowledgeCenter
@KnowledgeCenter 2 жыл бұрын
Welcome.
@rishidhawan9323
@rishidhawan9323 4 жыл бұрын
It will be great if you can make a video on "Word Break", LeetCode Challenge 29th September.
@rishidhawan9323
@rishidhawan9323 4 жыл бұрын
We will be requiring your explanation on that problem as you explain everything in very detail.
@siddharthsingh4330
@siddharthsingh4330 4 жыл бұрын
for l in t: if t.count(l) > s.count(l): return l
Зу-зу Күлпаш 2. Бригадир.
43:03
ASTANATV Movie
Рет қаралды 733 М.
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,8 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 46 МЛН
Seja Gentil com os Pequenos Animais 😿
00:20
Los Wagners
Рет қаралды 24 МЛН
Зу-зу Күлпаш 2. Бригадир.
43:03
ASTANATV Movie
Рет қаралды 733 М.