Kacy Codes
Kacy Codes
  • Видео 48
  • Просмотров 77 184

Видео

LeetCode 2040. Kth Smallest Product of Two Sorted Arrays
Просмотров 9722 года назад
Email: kacycodes@gmail.com
LeetCode 2055. Plates Between Candles - O(n + q)
Просмотров 4,2 тыс.2 года назад
Email: kacycodes@gmail.com
LeetCode 300. Longest Increasing Subsequence - O(n log n)
Просмотров 5 тыс.2 года назад
Email: kacycodes@gmail.com
LeetCode 300. Longest Increasing Subsequence (Bottom Up DP)
Просмотров 1222 года назад
Email: kacycodes@gmail.com
LeetCode 300. Longest Increasing Subsequence (Top Down DP)
Просмотров 4172 года назад
Email: kacycodes@gmail.com
LeetCode 225. Implement Stack using Queues (2 queues & 1 queue)
Просмотров 912 года назад
Email: kacycodes@gmail.com
LeetCode 1135. Connecting Cities With Minimum Cost
Просмотров 1,1 тыс.2 года назад
Email: kacycodes@gmail.com
LeetCode 2104. Sum of Subarray Ranges
Просмотров 10 тыс.2 года назад
Email: kacycodes@gmail.com
LeetCode 818. Race Car - BFS - O( target * log(target) )
Просмотров 2,8 тыс.2 года назад
Email: kacycodes@gmail.com
LeetCode 1152. Analyze User Website Visit Pattern
Просмотров 2,9 тыс.2 года назад
Email: kacycodes@gmail.com
LeetCode 1192. Critical Connections in a Network
Просмотров 5712 года назад
Email: kacycodes@gmail.com
LeetCode 4. Median of Two Sorted Arrays - O( log(min(n,m)) )
Просмотров 3012 года назад
Email: kacycodes@gmail.com
K-th element of two sorted Arrays - O( log(min(n, m)) )
Просмотров 2,5 тыс.2 года назад
Email: kacycodes@gmail.com
CTCI 4.9 BST Sequences - Java
Просмотров 7152 года назад
Email: kacycodes@gmail.com
LeetCode 236. Lowest Common Ancestor of a Binary Tree
Просмотров 862 года назад
LeetCode 236. Lowest Common Ancestor of a Binary Tree
LeetCode 269. Alien Dictionary (Kahn/BFS - Java)
Просмотров 2582 года назад
LeetCode 269. Alien Dictionary (Kahn/BFS - Java)
LeetCode 269. Alien Dictionary (DFS - Java)
Просмотров 2922 года назад
LeetCode 269. Alien Dictionary (DFS - Java)
LeetCode 370. Range Addition
Просмотров 1,4 тыс.2 года назад
LeetCode 370. Range Addition
LeetCode 630. Course Schedule III
Просмотров 1232 года назад
LeetCode 630. Course Schedule III
LeetCode 210. Course Schedule II - (Kahn's Algorithm / BFS)
Просмотров 872 года назад
LeetCode 210. Course Schedule II - (Kahn's Algorithm / BFS)
LeetCode 210. Course Schedule II - (DFS)
Просмотров 482 года назад
LeetCode 210. Course Schedule II - (DFS)
LeetCode 207. Course Schedule I - (DFS)
Просмотров 422 года назад
LeetCode 207. Course Schedule I - (DFS)
LeetCode 207. Course Schedule I - (Kahn's Algorithm / BFS)
Просмотров 8662 года назад
LeetCode 207. Course Schedule I - (Kahn's Algorithm / BFS)
LeetCode 79. Word Search
Просмотров 222 года назад
LeetCode 79. Word Search
LeetCode 208. Implement Trie (Prefix Tree) - Java
Просмотров 5762 года назад
LeetCode 208. Implement Trie (Prefix Tree) - Java
LeetCode 314. Binary Tree Vertical Order Traversal
Просмотров 1,1 тыс.2 года назад
LeetCode 314. Binary Tree Vertical Order Traversal
LeetCode 987. Vertical Order Traversal of a Binary Tree (PriorityQueue + DFS)
Просмотров 942 года назад
LeetCode 987. Vertical Order Traversal of a Binary Tree (PriorityQueue DFS)
LeetCode 285. Inorder Successor in BST (Recursive + Iterative approaches)
Просмотров 2792 года назад
LeetCode 285. Inorder Successor in BST (Recursive Iterative approaches)
LeetCode 106. Construct Binary Tree from Inorder and Postorder Traversal
Просмотров 1362 года назад
LeetCode 106. Construct Binary Tree from Inorder and Postorder Traversal

Комментарии

  • @nhatnamnguyenminh7926
    @nhatnamnguyenminh7926 День назад

    Simple makes PERFECT!

  • @bluewhale37
    @bluewhale37 3 дня назад

    Thank you so much kacy.

  • @rushio8673
    @rushio8673 23 дня назад

    loved it, one of the easiest and best explanation. Thank you !

  • @VishnuvarthanM-n2f
    @VishnuvarthanM-n2f Месяц назад

    tqq for this stuff ^^

  • @JDogMcSteezy
    @JDogMcSteezy Месяц назад

    Thank you for the iterative explanation

  • @JDogMcSteezy
    @JDogMcSteezy Месяц назад

    Thanks! The editorial did not really explain it and the popular channels stopped at the iterative solution

  • @Account-fi1cu
    @Account-fi1cu Месяц назад

    solved it intuitively using max heap,, but this is more efficient.. alas less obvious to wrap my head around it. thankyou !

  • @amadhurip9946
    @amadhurip9946 Месяц назад

    this guy is so cool

    • @KacyCodes
      @KacyCodes Месяц назад

      @@amadhurip9946 😎

  • @tomreyker9329
    @tomreyker9329 2 месяца назад

    The proves were real nice. I was struggling with it. Thanks.

  • @web-unlocked
    @web-unlocked 2 месяца назад

    Love you solution (and your voice)

  • @ZachDift-kc4nk
    @ZachDift-kc4nk 2 месяца назад

    I got this question for amazon's OA and also a question similar to this for IBM's OA on the coding portion so this is a good question to review. Too bad i didnt know how to do it 😭

  • @kasthurirangan3455
    @kasthurirangan3455 2 месяца назад

    instead of adding only odd length why are u adding all ?

  • @aammarahmad
    @aammarahmad 3 месяца назад

    epic vid! thx!

  • @shahidullahmuffakir668
    @shahidullahmuffakir668 3 месяца назад

    Good job brother, you explained the whole algo withing the first 4th minute. thank you. keep it up.

  • @mayankbhanot8986
    @mayankbhanot8986 3 месяца назад

    omg, the prefix sum explanation was so good

  • @jaideepdahiya4057
    @jaideepdahiya4057 3 месяца назад

    good explanation

  • @torr-o8v
    @torr-o8v 3 месяца назад

    is it really hard to grasp or I'm dumb?

  • @21centuryschizoid
    @21centuryschizoid 3 месяца назад

    I missed why this algorithm is nlogn

    • @NimishJindal-e6m
      @NimishJindal-e6m 2 месяца назад

      I was also initially confused. But this is my understanding: Searching for an element in the pile is logn (binary search). We do this for every element in the array (n). So total complexity is nlogn

  • @santiagoramirez851
    @santiagoramirez851 4 месяца назад

    Awesome!

  • @raghvendrakumarrai7183
    @raghvendrakumarrai7183 4 месяца назад

    Great Explanation! Thank you for such a beautiful explanation!😊😊

  • @ndot8499
    @ndot8499 4 месяца назад

    Bro u R me Fr

  • @oliverlooker
    @oliverlooker 4 месяца назад

    I put this exact code into my IntelliJ IDE and it doesn't work. The power function doesn't work. Any ideas? I am trying to write an asymmetric encryption program and need to figure this out.

  • @fredyrocky
    @fredyrocky 5 месяцев назад

    How about using two pointers. The first pointer starts from the beginning of each range and increases by 1 until it finds the first pipe and is less than end of range. The second pointer if (left pointer +1) and increases by 1 until it finds a pipe. We add the difference between both the pointers -1 as the current count of the stars. Then, we make the first pointer to start from the second pointer. And the secondpointer starts from firstpointer +1. We always check if the pointers are less than right.

  • @sahilamin219
    @sahilamin219 5 месяцев назад

    i like your hair, do not you get dandruff !!

    • @KacyCodes
      @KacyCodes 5 месяцев назад

      Never cause I use anti-dandruff shampoo twice a week 😎

  • @sourabhsingh4449
    @sourabhsingh4449 5 месяцев назад

    Thanks man, it was very helpful and so much to learn form this video more than what was needed to solve question. Keep up the good work of spreading knowledge

  • @IAmIndraTheGod
    @IAmIndraTheGod 6 месяцев назад

    Nice explanation and solution. appreciate your work.

  • @homeroserna9983
    @homeroserna9983 6 месяцев назад

    Good solution. I like that you did it with regular arrays makes it easy to transfer the logic to other languages.

  • @edwinrosemond989
    @edwinrosemond989 7 месяцев назад

    Incredible video! really good explanation thanks so much

  • @ithsigma
    @ithsigma 7 месяцев назад

    Very clever explanation. Thank you so much!

  • @anupamchopra5753
    @anupamchopra5753 7 месяцев назад

    Thank you brother beautiful explanation

  • @aaditya_87
    @aaditya_87 7 месяцев назад

    awesome!

  • @codeman0017
    @codeman0017 7 месяцев назад

    damn bro great explanation please continue doing vedioes

  • @glidermcglide9288
    @glidermcglide9288 7 месяцев назад

    This guy gives off the vibes of a HERO !

  • @shriramravichandran2956
    @shriramravichandran2956 8 месяцев назад

    Hey Kacy the explanation was so good. Can you teach monotonic queues as well?

  • @jui20oct
    @jui20oct 8 месяцев назад

    Out of all the vides on youtube, I understood your explanation! Thank you!

  • @axlrose5082
    @axlrose5082 8 месяцев назад

    You know it's a great explanation when you can code and submit the solution for yourself without even reading a single line of code from the instructor lol. Thank you!

    • @sandeshsinha9174
      @sandeshsinha9174 8 месяцев назад

      You won’t remember the solution today. That day was a short term memory I think. 😬😬

  • @johnapple3471
    @johnapple3471 8 месяцев назад

    2007 vibes

  • @Rahul-pr1zr
    @Rahul-pr1zr 8 месяцев назад

    How did you come up with the idea of choosing the bottom left or top right for calculating the no. of elements <= mid?

  • @vydruth
    @vydruth 9 месяцев назад

    Thanks for the clear explanation! Very helpful! 👍

  • @hangchen
    @hangchen 9 месяцев назад

    Code Ninja

  • @tod3117
    @tod3117 9 месяцев назад

    THANK YOU!!!!!!!

  • @alanchen6872
    @alanchen6872 9 месяцев назад

    It is very useful. Thanks mate.

  • @haqinzmamul12
    @haqinzmamul12 9 месяцев назад

    Great Kacy...

  • @potodds_trading
    @potodds_trading 10 месяцев назад

    Great explanation in Java code. Better than some of the Python solution as they use built-in functions that let you "see" the solution as clearly.

  • @pravinthganesan8552
    @pravinthganesan8552 10 месяцев назад

    Thanks for the explanation, able to understand the logic behind the solution for range addition and related problems, Thanks.

  • @anishchhabra6085
    @anishchhabra6085 10 месяцев назад

    Excellent solution man!🙌

  • @mickeycoreight7481
    @mickeycoreight7481 10 месяцев назад

    Hey thanks for the code, I was banging my head towards the wall when I saw the solution at leetcode but there’s actually more than meets the eye with LIS n log n

  • @rajan-u6b
    @rajan-u6b 10 месяцев назад

    great video Kacy, thanks

  • @tarun4705
    @tarun4705 11 месяцев назад

    This is the best explanation I could find on youtube. Thank you so much

  • @arina1193
    @arina1193 Год назад

    The best explanation I found for this problem 👍