Mike the Coder
Mike the Coder
  • 481
  • 1 346 421
Coding interview Patterns: Subsets
Hi guys,
My name is Mike the Coder and this is my programming youtube channel. I like C++ and please message me or comment on what I should program next. It really helps out a lot.
Rate, Comment, Subscribe
Personal Accounts:
Instagram: @michaellin250
Twitter: @Michaellin250
Переглядів: 1 400

Відео

Coding Interview Patterns: Two Heaps
Переглядів 1,3 тис.11 місяців тому
Hi guys, My name is Mike the Coder and this is my programming youtube channel. I like C and please message me or comment on what I should program next. It really helps out a lot. Rate, Comment, Subscribe Personal Accounts: Instagram: @michaellin250 Twitter: @Michaellin250
Channel Update new playlists on Modern C++
Переглядів 60311 місяців тому
Channel Update new playlists on Modern C
Phd students need SCISPACE!!
Переглядів 465Рік тому
Phd students need SCISPACE!!
COME TO SAMSUNG DEVELOPER CONFERENCE 2023
Переглядів 288Рік тому
COME TO SAMSUNG DEVELOPER CONFERENCE 2023
LeetCode Contest Weekly 357 Screencast
Переглядів 733Рік тому
LeetCode Contest Weekly 357 Screencast
Coding Interview Pattern | Depth First Search Tree Traversal
Переглядів 1,1 тис.Рік тому
Coding Interview Pattern | Depth First Search Tree Traversal
Atcoder Beginner Contest 310 Screencast
Переглядів 527Рік тому
Atcoder Beginner Contest 310 Screencast
Coding Interview Pattern | Tree Traversal BFS
Переглядів 1,6 тис.Рік тому
Coding Interview Pattern | Tree Traversal BFS
I HATE CODING INTERVIEWS
Переглядів 953Рік тому
I HATE CODING INTERVIEWS
Should you memorize LeetCode solutions?
Переглядів 1,6 тис.Рік тому
Should you memorize LeetCode solutions?
I’m back! I’ll upload soon!
Переглядів 268Рік тому
I’m back! I’ll upload soon!
I WILL SOLVE 1000 LEETCODE PROBLEMS AT THE END OF THIS YEAR
Переглядів 1 тис.Рік тому
I WILL SOLVE 1000 LEETCODE PROBLEMS AT THE END OF THIS YEAR
CHANNEL UPDATE!!
Переглядів 471Рік тому
CHANNEL UPDATE!!
I suck at this! Codeforces Round 856 Screencast
Переглядів 1,5 тис.Рік тому
I suck at this! Codeforces Round 856 Screencast
I’m back!!! And My tiktok is @michaellin251
Переглядів 240Рік тому
I’m back!!! And My tiktok is @michaellin251
How to read an Algorithms Textbook!
Переглядів 17 тис.2 роки тому
How to read an Algorithms Textbook!
Focus on Speed vs Difficulty in Competitive Programming?
Переглядів 5782 роки тому
Focus on Speed vs Difficulty in Competitive Programming?
Coding Interview Pattern: Linked List Reversal
Переглядів 1,4 тис.2 роки тому
Coding Interview Pattern: Linked List Reversal
Coding Interview Pattern: Cyclic Sort
Переглядів 4,1 тис.2 роки тому
Coding Interview Pattern: Cyclic Sort
TRICK TO TRUNCATE OVERFLOW DECIMALS
Переглядів 1762 роки тому
TRICK TO TRUNCATE OVERFLOW DECIMALS
Coding Interview Pattern | Merge Intervals
Переглядів 3,4 тис.2 роки тому
Coding Interview Pattern | Merge Intervals
SIMPLE TRICK TO PRINT A MATRIX
Переглядів 8482 роки тому
SIMPLE TRICK TO PRINT A MATRIX
HOW TO GENERATE DISTINCT PAIR COMBINATIONS
Переглядів 1,2 тис.2 роки тому
HOW TO GENERATE DISTINCT PAIR COMBINATIONS
Leetcode 2096 | Step-By-Step Directions From a Binary Tree Node to Another
Переглядів 1,6 тис.2 роки тому
Leetcode 2096 | Step-By-Step Directions From a Binary Tree Node to Another
Leetcode 150 | Evaluate Reverse Polish Notation | Google
Переглядів 2212 роки тому
Leetcode 150 | Evaluate Reverse Polish Notation | Google
Leetcode 2128 | Remove All Ones With Row and Column Flips | Google
Переглядів 3,1 тис.2 роки тому
Leetcode 2128 | Remove All Ones With Row and Column Flips | Google
Find Leaves of Binary Tree | Leetcode 366 | Google Question
Переглядів 2,1 тис.2 роки тому
Find Leaves of Binary Tree | Leetcode 366 | Google Question
Shortest Path in a Grid with Obstacles Elimination | Leetcode 1293 | Google Question
Переглядів 1,2 тис.2 роки тому
Shortest Path in a Grid with Obstacles Elimination | Leetcode 1293 | Google Question
Coding Interview Pattern | Fast and Slow Pointers
Переглядів 4 тис.2 роки тому
Coding Interview Pattern | Fast and Slow Pointers

КОМЕНТАРІ

  • @SSR0108
    @SSR0108 15 годин тому

    Really a good explanation

  • @footballandsoccerhq
    @footballandsoccerhq День тому

    I did it the dumb way and used a greedy algorithm. Basically I had the sum of 1 to n over 2 and kept finding the maximum value that fits in it and chuck those into set one and put the rest into set 2.

  • @VS-ic3by
    @VS-ic3by 2 дні тому

    Not even from the textbooks?

  • @dee_rius
    @dee_rius 2 дні тому

    The main question is, do I have to pay? 😅

  • @auto-replay
    @auto-replay 8 днів тому

    very cool but brother why u talk so fast, its your video you can slow down its ok

  • @3r3bu5x9
    @3r3bu5x9 10 днів тому

    pretty cool explanation understood it quickly but you gotta chill 😅🤣

  • @lifeofre847
    @lifeofre847 18 днів тому

    maybe you just don't realize you have more IQ than others. Some concepts are really stupid to understand clearly.

  • @colinleary2253
    @colinleary2253 19 днів тому

    edging?

  • @怪人-b1x
    @怪人-b1x 22 дні тому

    Leetcode is not for competitive programming, those problems are just for interviews and there's barely a good problem at Codeforces div. 1 level.

  • @raba650
    @raba650 26 днів тому

    I'm finishing Computer Science and recently thought it'd be a better idea to do something more related to Computer Engineering or Electrical Engineering since on the Computer Science side the workforce is highly saturated so I wonder if it's the sqme or different for Computer or Electrical Engineering. Don't know if you can still get into these fields as a Computer Science major or teach yourself how when CS meets the hardware side of things.

  • @deamooz9810
    @deamooz9810 28 днів тому

    12:00 bro was losing it, this is the funniest programming lesson ever, ty dude

  • @Nikhil-Tomar
    @Nikhil-Tomar Місяць тому

    Okay, I wasn't able to do this completely by myself, But If you know the starting number which is basically 1, 10,100, 1000 and so on. With some information such as starting_space, starting_number, length_of_single_number, You can find the number easily based on the below logic. Without the use of Binary Search def func(): inps = int(input()) for _ in range(inps): n = int(input()) hashmap = { 9: [1, 1, 1] } prev = 9 i = 1 while i < 19: base = 10 ** i highest = 9 for l in range(i): highest *= 10 highest += 9 main = ((highest - base + 1) * (i+1)) + prev hashmap[main] = [1 + prev, 10**i, i+1] prev = main i += 1 for key in hashmap: if key >= n: break context = hashmap[key] remain = n - (context[0]) incr = remain // context[2] value = context[1] + incr cut = context[2] - (remain % context[2]) for _ in range(1, cut): value //= 10 print(value % 10) func()

  • @mushylofi
    @mushylofi Місяць тому

    Beautifully explained ❤

  • @starrysouI
    @starrysouI Місяць тому

    I don’t even program but this just convinced me to try

  • @bilalazhar4495
    @bilalazhar4495 Місяць тому

    YES SIR

  • @Computervirusworld
    @Computervirusworld Місяць тому

    thanks bro

  • @N-fc21
    @N-fc21 Місяць тому

    😂

  • @nkd575
    @nkd575 Місяць тому

    can we get that book you opened in middle

    • @sai_45_4_tech
      @sai_45_4_tech Місяць тому

      Cp handbook it is in the cses website itself

  • @Egret-iz8yi
    @Egret-iz8yi Місяць тому

    真好啊!找了四个视频终于找到浅显易懂的了!终于学会了!谢谢博主!!!

  • @obesechicken13
    @obesechicken13 Місяць тому

    I liked when you went over the earlier examples visually but then you stopped for the later ones.

  • @pablobear4241
    @pablobear4241 Місяць тому

    are you gonna do this?

  • @Satish_deepvoice
    @Satish_deepvoice Місяць тому

  • @caiorenato1
    @caiorenato1 Місяць тому

    i love c++

  • @nguyennhuttruong8011
    @nguyennhuttruong8011 Місяць тому

    nice video!

  • @user-td5gy2fh3p
    @user-td5gy2fh3p 2 місяці тому

    what rank are you now on codeforces?

  • @ChirameTanishqArvind
    @ChirameTanishqArvind 2 місяці тому

    excellent!

  • @ryanswatson
    @ryanswatson 2 місяці тому

    And if all of that jumping around does not work, just read the book chapter by chapter.

  • @ranjithk9638
    @ranjithk9638 2 місяці тому

    Great explanation (from india)

  • @matchalover08
    @matchalover08 2 місяці тому

    Yes 😭😭 preach! I'm a beginner but I will not give up!!!

  • @matchalover08
    @matchalover08 2 місяці тому

    This guy motivates me!!!

  • @matchalover08
    @matchalover08 2 місяці тому

    I have a feeling my math, coding skills and motivation will improve after watching this guy! Love the vibe! Subbed!

  • @monteirodelprete6627
    @monteirodelprete6627 2 місяці тому

    6:29 it is not a max-heap. It violates the property "for each node, its value is greater or equal to the children's values"

    • @MiketheCoder
      @MiketheCoder 2 місяці тому

      The 4 should’ve been where the 1 is

  • @IshaFatima-v7u
    @IshaFatima-v7u 2 місяці тому

    Can u tell me about discrete mathematics with application solution book by susana .Epp

  • @jeyburns.t9209
    @jeyburns.t9209 2 місяці тому

    Finally someone who explains this simple

  • @jorgitozor
    @jorgitozor 2 місяці тому

    David Googling

  • @serialchiller6786
    @serialchiller6786 2 місяці тому

    I'm doing computer science and engineering

  • @labibanadi
    @labibanadi 3 місяці тому

    Thanks

  • @Iamine1981
    @Iamine1981 3 місяці тому

    Any way we can implement the fast pointer as moving three times faster than the slow one ? What would be the implications on the algorithm in this case?

  • @meow9874
    @meow9874 3 місяці тому

    @16.32 i think windowEnd is windowSize, they wrote it wrong but i get the idea, thanks for this video

  • @sas_squatch
    @sas_squatch 3 місяці тому

    me a 7th grrader not understanding a single thing u started doing after u included K

  • @davefried
    @davefried 3 місяці тому

    if you have more than one interval in your set

  • @ohmegatech666
    @ohmegatech666 3 місяці тому

    So it's just caching / memoizing for one speicific function (getting prev sum) basically

  • @spookyneha7670
    @spookyneha7670 3 місяці тому

    Thank you so much

  • @shawngrant9588
    @shawngrant9588 3 місяці тому

    Can you give a more in depth video/explanation on this? I just use the progress feature in LeetCode to see what I did.

  • @neoflyboy
    @neoflyboy 3 місяці тому

    great job! is there a github for all this? thanks!

  • @niharjani9611
    @niharjani9611 3 місяці тому

    Bro, You are god to me !!!!!!!!!!

  • @seshikanth4892
    @seshikanth4892 3 місяці тому

    excellent explanation

  • @hyperboliq
    @hyperboliq 3 місяці тому

    That’s so true. I love the energy too. thank you!

  • @mehmetali1945
    @mehmetali1945 3 місяці тому

    did anyone actually think of this without using any other resource or seeing similar questions when they came up with the timeout error for some cases ?

  • @grandparick3176
    @grandparick3176 3 місяці тому

    Hey Mike when will you make cp videos again? I was so surprised and happy to see that you gave the last cf contest. And also you seem like you a glow up. good for you man.