Leetcode Weekly Contest 399 | Video Solutions - A to D | by Raghav Goel | TLE Eliminators

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

TLE Eliminators - by Priyansh

TLE Eliminators - by Priyansh

Күн бұрын

Here are the video solutions for problems A, B, C, D of Leetcode Weekly Contest 399. We hope this will be useful for you in up-solving this contest.
📢Check out handpicked problems by Priyansh himself, on our CP-31 sheet: www.tle-eliminators.com/cp-sheet
Solution Codes:
Problem A : leetcode.com/submissions/deta...
Problem B : leetcode.com/submissions/deta...
Problem C : leetcode.com/submissions/deta...
Problem D : leetcode.com/submissions/deta...
Be sure to check out TLE Eliminators.
Website: www.tle-eliminators.com/
Instagram: / tle_eliminators
Linkedin: / tle-eliminators
Twitter: / tle_eliminators
TLE Community Discord Server: / discord
Timestamps:-
0:00 Problem A
3:33 Problem B
18:05 Problem C
53:45 Problem D

Пікірлер: 14
@TLE_Eliminators
@TLE_Eliminators Ай бұрын
Please fill the feedback form : forms.gle/kwLTcX4Hv6jc6Xkv9
@shrinidhi14
@shrinidhi14 Ай бұрын
Sir, In Code of Problem 3, why had you initialized the global arrays to value 0 ? (because global variables are automatically initialized to 0)
@vaalarivan_p
@vaalarivan_p Ай бұрын
Not only global variables, but local variables r also initialised by default to 0 in CPP. Even though i know this, i tend to initialise them to 0 anyways since i didn't know this concept initially😢
@shrinidhi14
@shrinidhi14 Ай бұрын
@@vaalarivan_p Also, when I didn't initialized the global arrays, on running they were having some random values. Don't know why 🤷‍♂️
@shrinidhi14
@shrinidhi14 Ай бұрын
@@vaalarivan_p Please explain how and why local variables are initialized to 0 ?
@vaalarivan_p
@vaalarivan_p Ай бұрын
@@shrinidhi14 oops turns out i was rong abt static variables havin defolt values! my claim was based on the observation that vectors get default values even on local scope! btw idk why u didnt get default values as 0 for global arrays though!
@MohanKarthik-lr4lk
@MohanKarthik-lr4lk Ай бұрын
Sir in the second problem why did u concatenation of with 0 in second problem
@kaushalpadaliya529
@kaushalpadaliya529 Ай бұрын
because if you only push 5 as character it will converted to it's ascii num instead of 5 so here we took 0 as char so the freq + '0' will be the frequency of given character
@MohanKarthik-lr4lk
@MohanKarthik-lr4lk Ай бұрын
​@@kaushalpadaliya529 if u concatenate 5+words it comes why again 0 i didn't get it
@kaushalpadaliya529
@kaushalpadaliya529 Ай бұрын
@@MohanKarthik-lr4lk i didn't understood what you are saying can you tell me more precisely?
@MohanKarthik-lr4lk
@MohanKarthik-lr4lk Ай бұрын
@@kaushalpadaliya529 bro small question why should u concatenate with 0 that is why can't you add direct num
@--Sreekarsai
@--Sreekarsai Ай бұрын
@@MohanKarthik-lr4lk number 0 is different from character 0. To convert any number to its character version of it we need to add character 0 to it. For example if you need to convert number 5 to character 5 you need to add 5+'0'. It will make sense when you know about ascii. for every character in keyboard you have ascii ,by using ascii number computer will decide the character. The ascii value of number 0 is 48. so if you give 48 to the computer ,computer will treat it as 0. the ascii value of 1 is 49 so if you want give 1 to computer you can give 49 or you can give '0' +1.
@amansinghal2431
@amansinghal2431 Ай бұрын
In python, I wrote a solution with 10^6 log (10^6) complexity, it is giving TLE for even small n1 and n2
@kaushalpadaliya529
@kaushalpadaliya529 Ай бұрын
because python is comparatively slower than cpp java that's why ig
Leetcode Weekly Contest 404 | Video Solutions - A to D | by Abhinav Kumar | TLE Eliminators
1:49:57
Codechef Starters 136 (Div 2) | Video Solutions - A to D | by Ankit Ghildiyal | TLE Eliminators
1:06:30
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 13 МЛН
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 190 МЛН
Coding Interviews Be Like
5:31
Nicholas T.
Рет қаралды 6 МЛН
8 patterns to solve 80% Leetcode problems
7:30
Sahil & Sarra
Рет қаралды 216 М.
Leetcode Weekly Contest 398 | Video Solutions - A to D | by Gaurish Baliga | TLE Eliminators
1:08:50
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 293 М.
Codeforces Epic Institute Round | Video Solutions - A to E | by Abhinav Kumar | TLE Eliminators
2:18:54
Doing LeetCode Be Like (Coding Interviews Be Like Pt. 2)
4:41
Nicholas T.
Рет қаралды 746 М.
The LeetCode Fallacy
6:08
NeetCode
Рет қаралды 436 М.
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 190 М.
Winning LeetCode Weekly Contest 201
12:07
William Lin
Рет қаралды 128 М.
Asking GOOGLE & AMAZON 🚀 Engineers how much money do they make? 🤔
15:42
THEY WANTED TO TAKE ALL HIS GOODIES 🍫🥤🍟😂
00:17
OKUNJATA
Рет қаралды 13 МЛН