Meta Interview Question - Encode and Decode Strings - LeetCode 271

  Рет қаралды 3,726

AlgoJS

AlgoJS

Күн бұрын

Пікірлер: 13
@Amir-bz1fk
@Amir-bz1fk 3 ай бұрын
This won't work when we have "-encodeStr" in our list.
@Chempox
@Chempox 5 ай бұрын
This one is a simple solutions, but it might not work in a interview. Depends on the company, but some don't like you to use the js functions. But if they let you use this solution, don't make it harder for you. Good video btw.
@100x_Developer
@100x_Developer Жыл бұрын
This is so helpful. I 've been trying to solve this one for some time now.. it's amazing that the video with the shortest duration has done the job.. Thank you a lot.
@General_Aladeen
@General_Aladeen Жыл бұрын
you made it so easy man
@mariselvan
@mariselvan Ай бұрын
And that's not what the interviewer will expect man. If it's too easy it'll go into easy. Not medium
@ogundipepelumi4927
@ogundipepelumi4927 2 жыл бұрын
Thank you for the explanatory video.. You made it look very easy.
@AlgoJS
@AlgoJS 2 жыл бұрын
No problem Ogundipe!
@accidentalengineering
@accidentalengineering Жыл бұрын
What's wrong with JSON?
@shamus030
@shamus030 Жыл бұрын
The problem statement says you are not allowed to use built-in encoding/decoding functions. So JSON would be a valid solution, but you would have to write your own encoder/decoder!
@MrNaberz
@MrNaberz Жыл бұрын
This is wrong
@Deepa0811
@Deepa0811 2 жыл бұрын
Super simple. Thanks ! This would still be Time complexity of O(N) and constant space. Correct? We need to add a non ASCII (such as +,-, # etc) to the join string as a delimiter, is it?
@AlgoJS
@AlgoJS 2 жыл бұрын
Correct
@Rebants
@Rebants Жыл бұрын
Need length of string + delimiter. [hello, world] -> [5_hello5_world] Decode reads numbers until _ and then reads that many more for next string*, etc.
Encode and Decode Strings - Leetcode 271 - Python
11:33
NeetCode
Рет қаралды 280 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
路飞做的坏事被拆穿了 #路飞#海贼王
00:41
路飞与唐舞桐
Рет қаралды 26 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
37:51
bayGUYS
Рет қаралды 1,6 МЛН
Pass Your Next Tech Interview With Valid Sudoku
6:42
Chris Courses
Рет қаралды 18 М.
[Java] Leetcode 271. Encode and Decode Strings [String #4]
12:29
Eric Programming
Рет қаралды 8 М.
Coding Interviews Be Like
5:31
Nicholas T.
Рет қаралды 6 МЛН
Encode and Decode Strings ( Leetcode #271 ) | Using JavaScript
14:01
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 782 М.
Minimum Window Substring - LeetCode 76 - JavaScript
13:49
AlgoJS
Рет қаралды 3,2 М.
Israel Has The Right To Defend Itself | Stand-up Comedy by Daniel Fernandes
15:07
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН