Sleepy Cracker
Sleepy Cracker
  • 1 089
  • 121 861
#LeetCode 1421 |. NPV Queries #SQL
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing
Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
มุมมอง: 0

วีดีโอ

#LeetCode 3005 | Count Elements With Maximum Frequency #Java
มุมมอง 14 ชั่วโมงที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 570 | Managers with at Least 5 Direct Reports #SQL
มุมมอง 14 ชั่วโมงที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 1784 | Check if Binary String Has at Most One Segment of Ones #Java
มุมมอง 14 ชั่วโมงที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 2989 | Class Performance #SQL
4 ชั่วโมงที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 3000 | Maximum Area of Longest Diagonal Rectangle #Java
4 ชั่วโมงที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 1571 | Warehouse Manager #SQL
มุมมอง 14 ชั่วโมงที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 2390 | Removing Stars From a String #Java
มุมมอง 1521 ชั่วโมงที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 1633 | Percentage of Users Attended a Contest #Java
มุมมอง 721 ชั่วโมงที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 2923 | Find Champion I #Java
มุมมอง 621 ชั่วโมงที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 2570 | Merge Two 2D Arrays by Summing Values #Java
มุมมอง 1014 วันที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 1874 | Minimize Product Sum of Two Arrays #Java
มุมมอง 1714 วันที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 1083 | Sales Analysis II #Java
มุมมอง 1521 วันที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 2176 | Count Equal and Divisible Pairs in an Array #Java
มุมมอง 1221 วันที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 2853 | Highest Salaries Difference #Java
มุมมอง 621 วันที่ผ่านมา
Questions in English: docs.google.com/spreadsheets/d/1QNSEok-WD4LCPTrZlqq5VVTX0NbXQf27WUjkGi3aBu0/edit?usp=sharing Questions in Mandarin: docs.google.com/spreadsheets/d/1aMCmSLucm7I_7BIRz1SqHy8c1D9h_6M8XAkrqWXSy8Y/edit?usp=sharing
#LeetCode 3024 | Type of Triangle #Java
มุมมอง 821 วันที่ผ่านมา
#LeetCode 3024 | Type of Triangle #Java
#LeetCode 3014 | Minimum Number of Pushes to Type Word I #Java
มุมมอง 1021 วันที่ผ่านมา
#LeetCode 3014 | Minimum Number of Pushes to Type Word I #Java
#LeetCode 2960 | Count Tested Devices After Test Operations #Java
มุมมอง 1021 วันที่ผ่านมา
#LeetCode 2960 | Count Tested Devices After Test Operations #Java
#LeetCode 1865 | Finding Pairs With a Certain Sum #Java
มุมมอง 621 วันที่ผ่านมา
#LeetCode 1865 | Finding Pairs With a Certain Sum #Java
#LeetCode 2937 | Make Three Strings Equal #Java
มุมมอง 721 วันที่ผ่านมา
#LeetCode 2937 | Make Three Strings Equal #Java
#LeetCode 2352 | Equal Row and Column Pairs #Java
มุมมอง 1021 วันที่ผ่านมา
#LeetCode 2352 | Equal Row and Column Pairs #Java
#LeetCode 1661 | Average Time of Process per Machine #SQL
มุมมอง 621 วันที่ผ่านมา
#LeetCode 1661 | Average Time of Process per Machine #SQL
#LeetCode 659 | Split Array into Consecutive Subsequences #Java
มุมมอง 921 วันที่ผ่านมา
#LeetCode 659 | Split Array into Consecutive Subsequences #Java
#LeetCode 1353 | Maximum Number of Events That Can Be Attended #Java
มุมมอง 16หลายเดือนก่อน
#LeetCode 1353 | Maximum Number of Events That Can Be Attended #Java
#LeetCode 2210 | Count Hills and Valleys in an Array #Java
มุมมอง 11หลายเดือนก่อน
#LeetCode 2210 | Count Hills and Valleys in an Array #Java
#LeetCode 1089 | Duplicate Zeros #Java
มุมมอง 23หลายเดือนก่อน
#LeetCode 1089 | Duplicate Zeros #Java
#LeetCode 2520 | Count the Digits That Divide a Number #Java
มุมมอง 10หลายเดือนก่อน
#LeetCode 2520 | Count the Digits That Divide a Number #Java
#LeetCode 1154 | Day of the Year #Java
มุมมอง 43หลายเดือนก่อน
#LeetCode 1154 | Day of the Year #Java
#LeetCode 1380 | Lucky Numbers in a Matrix #Java
มุมมอง 70หลายเดือนก่อน
#LeetCode 1380 | Lucky Numbers in a Matrix #Java
#LeetCode 1399 | Count Largest Group #Java
มุมมอง 17หลายเดือนก่อน
#LeetCode 1399 | Count Largest Group #Java

ความคิดเห็น

  • @tommyls4357
    @tommyls4357 9 วันที่ผ่านมา

    Very cool technique. Thank you :-)

  • @5577_SAYANADHIKARI
    @5577_SAYANADHIKARI 20 วันที่ผ่านมา

    U could provide a link to the codebase or preferably give the code in the comments. :)

    • @sleepycracker4732
      @sleepycracker4732 20 วันที่ผ่านมา

      good advice, but I don't like to give away code like that.

  • @PhrogDaz
    @PhrogDaz 22 วันที่ผ่านมา

    Bruteforce method and 5 ms runtime :(

  • @psinity
    @psinity 23 วันที่ผ่านมา

    thanks a lot!

  • @11csepratikshaargulewar71
    @11csepratikshaargulewar71 หลายเดือนก่อน

    If you are making video of something , shouldn't you be clear and well heard . additionally you should pronounce words properly .just a feedback after watching your video

    • @sleepycracker4732
      @sleepycracker4732 หลายเดือนก่อน

      thanks for watching. I am making the video for myself. Best,

  • @Rajesh_100
    @Rajesh_100 หลายเดือนก่อน

    Good Approach💯

  • @abhinvsinh
    @abhinvsinh หลายเดือนก่อน

    Thank you for the code and the explanation. Keep up the good work.

  • @aayushmaantawer285
    @aayushmaantawer285 หลายเดือนก่อน

    Best Explaination

  • @KamalSabanov
    @KamalSabanov หลายเดือนก่อน

    thank you man :)

  • @dwivedishashank9
    @dwivedishashank9 หลายเดือนก่อน

    Dude, thanks!

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 หลายเดือนก่อน

    NICE SUPER EXCELLENT MOTIVATED

  • @kapilpalanivel2309
    @kapilpalanivel2309 2 หลายเดือนก่อน

    Bro's cooking very quiet in silence

  • @rajshiromani727
    @rajshiromani727 2 หลายเดือนก่อน

    those keyboard clicks are so irritating

  • @AmitKumar-uu6dl
    @AmitKumar-uu6dl 2 หลายเดือนก่อน

    Thank you bhaiya, it is very helpful 😊

  • @user-po1nt3gq5o
    @user-po1nt3gq5o 2 หลายเดือนก่อน

    ❤me too lol

  • @sleepycracker4732
    @sleepycracker4732 2 หลายเดือนก่อน

    similar question: th-cam.com/video/hwgZAy8oRRk/w-d-xo.html

  • @sleepycracker4732
    @sleepycracker4732 2 หลายเดือนก่อน

    similar question: th-cam.com/video/HVBxIP1zcPY/w-d-xo.html

  • @sleepycracker4732
    @sleepycracker4732 2 หลายเดือนก่อน

    the old video can be accessed through here: th-cam.com/video/rtkAsSUjpQ0/w-d-xo.html However, youtube currently disable people to view it report: th-cam.com/users/postUgkxRzAU91_3AwBrjd3otZb0lrKsueNfbiac

  • @hari7110
    @hari7110 2 หลายเดือนก่อน

    nice explanation!

  • @ShubhamSharma-sf8wk
    @ShubhamSharma-sf8wk 2 หลายเดือนก่อน

    Bro get a decent mic

    • @sleepycracker4732
      @sleepycracker4732 2 หลายเดือนก่อน

      Apologies, it was crafted two years back. However, the setup wasn't prepared at that time.

    • @ShubhamSharma-sf8wk
      @ShubhamSharma-sf8wk 2 หลายเดือนก่อน

      @@sleepycracker4732 No worries, great explanation tho

  • @DevMishra001
    @DevMishra001 2 หลายเดือนก่อน

    good solutions and easily understandable.

  • @razvi-uv5ki
    @razvi-uv5ki 2 หลายเดือนก่อน

    awesome, keep it up!

  • @abishekc9478
    @abishekc9478 3 หลายเดือนก่อน

  • @CrashAddict60
    @CrashAddict60 3 หลายเดือนก่อน

    I really appreciate your channel 🙌. I'm going to start doing leetcode again this month

  • @ayush1072
    @ayush1072 3 หลายเดือนก่อน

    great logic bro ...

  • @tonyz2203
    @tonyz2203 3 หลายเดือนก่อน

    you use js now!

  • @tonyz2203
    @tonyz2203 3 หลายเดือนก่อน

    good

  • @tanmaymhaske7587
    @tanmaymhaske7587 4 หลายเดือนก่อน

    Best explanation with Diagram, was struggling to understand this problem

  • @devnull711
    @devnull711 4 หลายเดือนก่อน

    very good solution and explanation

  • @thisisnotok2100
    @thisisnotok2100 4 หลายเดือนก่อน

    This is a genius solution, I couldn't fathom a bit of this. I tried to do a sliding window and splice out from the window.

  • @weeniee29
    @weeniee29 4 หลายเดือนก่อน

    Can you explain it clearly

  • @sleepycracker4732
    @sleepycracker4732 4 หลายเดือนก่อน

    2 Pointer: th-cam.com/video/BAKrAvGFL3Q/w-d-xo.html HashMap: th-cam.com/video/ze_viMxD9n8/w-d-xo.html

  • @sleepycracker4732
    @sleepycracker4732 4 หลายเดือนก่อน

    DFS version1:th-cam.com/video/KCaledGy-S8/w-d-xo.html DFS version2: th-cam.com/video/O9draJvnIFc/w-d-xo.html BFS: th-cam.com/video/eFRiufqFf2I/w-d-xo.html

  • @jayeshtak2530
    @jayeshtak2530 4 หลายเดือนก่อน

    AWESOME

  • @sleepycracker4732
    @sleepycracker4732 4 หลายเดือนก่อน

    old version: th-cam.com/video/IFmj-Jb3Hhg/w-d-xo.html

  • @artone5841
    @artone5841 4 หลายเดือนก่อน

    if we iterate the bucket the tc is o(n) and than we iterate the list the tc is o(k) so why not ther tc of this soln is o(n*k), why its o(n) , if n is 9 and the k is 6 so u cant neglect the k

    • @sleepycracker4732
      @sleepycracker4732 4 หลายเดือนก่อน

      k is a given input which should be a constant in the question. However, I agree with you that the complexity of this solution is O(N*k).

  • @sleepycracker4732
    @sleepycracker4732 4 หลายเดือนก่อน

    old version: th-cam.com/video/nglC6G23SOM/w-d-xo.html

  • @jaatharsh
    @jaatharsh 4 หลายเดือนก่อน

    Brillant explanation thanks buddy

  • @sleepycracker4732
    @sleepycracker4732 5 หลายเดือนก่อน

    old version: th-cam.com/video/pxbyjog6BcQ/w-d-xo.html

  • @sleepycracker4732
    @sleepycracker4732 5 หลายเดือนก่อน

    Array: th-cam.com/video/v2HDOC8usew/w-d-xo.html DP: th-cam.com/video/ZR1TpHJnHq0/w-d-xo.html

  • @sleepycracker4732
    @sleepycracker4732 5 หลายเดือนก่อน

    DFS: th-cam.com/video/3jzDkW4_WTE/w-d-xo.html BFS: th-cam.com/video/P0xqYQoK3fs/w-d-xo.html

  • @aminah.03
    @aminah.03 5 หลายเดือนก่อน

    Oh, a reminder I need to practice! Will check out your other videos!

  • @sleepycracker4732
    @sleepycracker4732 5 หลายเดือนก่อน

    BFS old version: th-cam.com/video/lmoC2alK7nY/w-d-xo.html DFS old version: th-cam.com/video/EaWCmwsW_uc/w-d-xo.html

  • @sleepycracker4732
    @sleepycracker4732 5 หลายเดือนก่อน

    old version1: th-cam.com/video/ttOCXU2T_dE/w-d-xo.html old version2: th-cam.com/video/NGR2fZ3YAYA/w-d-xo.html

  • @johnangelo2000
    @johnangelo2000 5 หลายเดือนก่อน

    Please explain why atMost(k) - atMost(k-1) needed? I didn't dig deep to understand it.

    • @sleepycracker4732
      @sleepycracker4732 5 หลายเดือนก่อน

      think about this way. what are the sub array you have when k = 1? using the example 1: Input: nums = [1,2,1,2,3], the answer should be: 5. [1],[2],[1],[2],[3] what if k = 2? the answer is 7. [1,2], [2,1], [1,2], [2,3], [1,2,1], [2,1,2], [1,2,1,2]. but this is the sub arrays after you cut down the k=1 sub arrays. if you don't subtract the sub arrays, you should have [1],[2],[1],[2],[3],[1,2], [2,1], [1,2], [2,3], [1,2,1], [2,1,2], [1,2,1,2]. these are the result we have for atMost(2) in order to get the count of sub array to 7, we must minus atMost(1) hope this helps

    • @johnangelo2000
      @johnangelo2000 5 หลายเดือนก่อน

      @@sleepycracker4732 Yes it was not intuitive enough for me to figure out (j-i+1) is doing what you mentioned.

    • @sleepycracker4732
      @sleepycracker4732 5 หลายเดือนก่อน

      that is how we get the length of the subarray. it would be clear enough if you draw the index on a paper

    • @johnangelo2000
      @johnangelo2000 5 หลายเดือนก่อน

      @@sleepycracker4732 Yes I went to paper and drew it and it turned out true and made sense. Thanks

  • @Dishum_dishum
    @Dishum_dishum 6 หลายเดือนก่อน

    Good explanation brother 💯✨

  • @andriidanylov9453
    @andriidanylov9453 6 หลายเดือนก่อน

    Appreciate. This is the best solution on youtube.

  • @rahulkapoor2930
    @rahulkapoor2930 6 หลายเดือนก่อน

    Nice Explanation!

  • @prashant9246
    @prashant9246 6 หลายเดือนก่อน

    You are awesome 👌 bro. How can I learn coding like you bro. I'm using java for dsa.

    • @sleepycracker4732
      @sleepycracker4732 6 หลายเดือนก่อน

      keep learning and motivating yourself.

    • @prashant9246
      @prashant9246 6 หลายเดือนก่อน

      @@sleepycracker4732 actually what I'm facing problem is 1. Facing difficult to understand question. 2. If I get ans difficult to make logic 3. Sometime I able to make logic to unable to write in form of code.

    • @sleepycracker4732
      @sleepycracker4732 6 หลายเดือนก่อน

      start with easy questions, and think about how you may approach to the solution

    • @prashant9246
      @prashant9246 6 หลายเดือนก่อน

      @@sleepycracker4732 ok thnx buddy.

  • @professorLive1209
    @professorLive1209 6 หลายเดือนก่อน

    So f**king needy solution! Salute!