doing leetcode everyday until I get a job (day 106)

  Рет қаралды 901

John Wilkins

John Wilkins

Күн бұрын

Пікірлер: 8
@just_exist_ezz
@just_exist_ezz 19 күн бұрын
Best of luck thats the dedication I wish I had
@hamadrehman853
@hamadrehman853 21 күн бұрын
Hey john. Best of LUCK man You're gonna make it for sure. Keep going
@John-Wilkins
@John-Wilkins 20 күн бұрын
Thanks man! Let's chase our dreams until they get tired and lie down.
@montralanca
@montralanca 19 күн бұрын
hope u get a job, i got one yesterday
@John-Wilkins
@John-Wilkins 19 күн бұрын
Congratulations dude! 🎉
@montralanca
@montralanca 18 күн бұрын
@@John-Wilkins thank you, i had an approach similar to yours, just started to crunch a lot of code and reading, and getting to know different libs, basically facing everything nonstop - was actually solid, u prob gonna make it soon if youre interviewing
@michaelharrington5860
@michaelharrington5860 21 күн бұрын
Nested (for) loops aren't indicative of quadratic time complexity. Fixed Inner Loop: for (let i = 0; i < n; i++) { for (let j = 0; j < 10; j++) { // constant size // do something } } This is O(n) because the inner loop is constant time - it always runs 10 times regardless of n. Decreasing Inner Loop: for (let i = 0; i < n; i++) { for (let j = 0; j < n - i; j++) { // do something } } This is actually O(n²/2), which simplifies to O(n²), but it's a good example of how not all nested loops do the same amount of work. Halving Inner Loop: for (let i = 0; i < n; i++) { for (let j = 0; j < n; j += i + 1) { // step size increases // do something } } This is O(n log n) because the inner loop makes fewer iterations as i increases. Different Collection Sizes: for (let i = 0; i < n; i++) { for (let j = 0; j < m; j++) { // different size // do something } } This is O(n*m), which could be better or worse than O(n²) depending on the relationship between n and m. Time complexity depends on how many total iterations occur, not just the fact that loops are nested.
@John-Wilkins
@John-Wilkins 20 күн бұрын
Thanks brother
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 270 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,3 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
15 Years Writing C++ - Advice for new programmers
4:04
SyncMain
Рет қаралды 1,3 МЛН
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 774 М.
doing leetcode everyday until I get a job (day 107)
4:24
John Wilkins
Рет қаралды 399
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 322 М.
70% of Programmers can't solve this LeetCode Easy Question
7:32
2 Years of C++ Programming
8:20
Zyger
Рет қаралды 326 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 681 М.
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 818 М.
8 patterns to solve 80% Leetcode problems
7:30
Sahil & Sarra
Рет қаралды 506 М.
you will never ask about pointers again after watching this video
8:03