First unique character in a string | Leetcode

Publicado em: 05 Maio 2020
no canal de: Techdose
44,098
546

This video explains a very interesting programming interview question which is to find the first non-repeating character in a string. The problem is simple but has repeated in numerous interviews. I have shown the intuition for solving this problem with proper examples and algorithm. We can solve this problem using an array or hash or map etc. data structures. I have shown the solution using simple array in just O(N) time and O(1) extra space. CODE LINK for this is given in the description below. I have also given link for similar problem variants ransom note and first non repeating character in a stream of characters. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)


CODE LINK: https://gist.github.com/SuryaPratapK/...
SIMILAR PROBLEMS:-
First non-repeating character in a stream of characters:    • First non repeating character in a st...  
Ransom Note:    • Ransom note | Leetcode #383  
First unique number:    • First unique number | Leetcode  


Nesta página do site você pode assistir ao vídeo on-line First unique character in a string | Leetcode duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Techdose 05 Maio 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 44,098 vezes e gostou 546 espectadores. Boa visualização!