Uploaded November 2019 | Updated December 2026, 1 day ago
Sliding Window Technique: In this video, I have explained sliding window technique which is the optimal way to solve maximum size subarray of size K coding interview problem.
There are a lot of coding interview problems which can be solved by using this technique in an optimized way.
π΄ DONT CLICK THIS: bit.ly/2G4cEuc
π Like us on Facebook: facebook.com/javaaid
πShare this video with your friend: youtu.be/__guhvzO540
π‘ Source code:gist.github.com/kanahaiya/bdd3e87b06b7006ac7dc6d0149a8659a
β Join our community βΊ
π Coding interview preparation group: facebook.com/groups/codingip
π Telegram link for algorithmic tutorial: https://t.me/javaaid
π Telegram link for hackerrank solutions: https://t.me/hackerranksolutions
β Recommended playlists βΊ
π Dynamic Programming Tutorial For Beginner: youtube.com/watch?v=ewXklhesC-w&list=PLSIpQf0NbcClDpWE58Y-oSJro_W3LO8Nb
π New To JAVAAID ? Watch These Videos: youtube.com/watch?v=pVS3yhlzrlQ&list=PLSIpQf0NbcClvBksfrr_jOpZCraiog3-J
π Algorithms Fundamental: youtube.com/playlist?list=PLSIpQf0NbcCk2O05hkxHPtVqGRGtnClh8
π Coding Interview Questions: youtube.com/playlist?list=PLSIpQf0NbcCm1HjcbM6aAoDUdpZyS1YBP
π All hackerrank solutions: youtube.com/watch?v=oz_yowFTrgs&list=PLSIpQf0NbcCltzNFrOJkQ4J4AAjW3TSmA
π TOP 10 LEARNING RESOURCES
1) Cracking the Coding Interview :amzn.to/30HFJCE
2) Algorithms Hardcover :amzn.to/30Hjdd9
3) The Algorithm Design Manual :amzn.to/2AEtEDL
4) Data Structures & Algorithms in Java :amzn.to/2AG82ag
5) Data Structures and Algorithms Made Easy :amzn.to/2M8UvNK
6) Grokking Algorithms :amzn.to/2LKu8yD
7) Dynamic Programming for Coding Interviews :amzn.to/2AC7BO9
8) Introduction to Algorithms :amzn.to/2oSJAzq
9) Elements of Programming Interviews in Java :amzn.to/30MBjKO
10) Programming Interviews Exposed :amzn.to/2V8mFfO
π Letβs Connect βΊ
Git Hub: github.com/kanahaiya
Twitter: twitter.com/Kanahaiyagupta
Linked in: linkedin.com/in/kanahaiya-gupta
Facebook: facebook.com/coolkanahaiya
Instagram: instagram.com/javaaid.algorithms
#JAVAAID #slidingwindowtechnique #leetcode #javaAidTutorials #programming #dataStructures #algorithms #coding #competitiveprogramming #google #java #codinginterview #problemsolving #kanahaiyaGupta #google #facebook #amazon #oracle #linkedin
DISCLAIMER: These above-mentioned resources have affiliate links, which means if you buy one of the products from my links, I might receive a small commission without having an extra cost to you. This helps support the channel and allows us to continue to add more tutorial. Thank you for your support!
NOTE: All above-shared learning resources are best of my knowledge as I have personally read all except one Introduction to Algorithms.
Sliding Window Technique: In this video, I have explained sliding window technique which is the optimal way to solve maximum size subarray of size K coding interview problem.
There are a lot of coding interview problems which can be solved by using this technique in an optimized way.
π΄ DONT CLICK THIS: bit.ly/2G4cEuc
π Like us on Facebook: facebook.com/javaaid
πShare this video with your friend: youtu.be/__guhvzO540
π‘ Source code:gist.github.com/kanahaiya/bdd3e87b06b7006ac7dc6d0149a8659a
β Join our community βΊ
π Coding interview preparation group: facebook.com/groups/codingip
π Telegram link for algorithmic tutorial: https://t.me/javaaid
π Telegram link for hackerrank solutions: https://t.me/hackerranksolutions
β Recommended playlists βΊ
π Dynamic Programming Tutorial For Beginner: youtube.com/watch?v=ewXklhesC-w&list=PLSIpQf0NbcClDpWE58Y-oSJro_W3LO8Nb
π New To JAVAAID ? Watch These Videos: youtube.com/watch?v=pVS3yhlzrlQ&list=PLSIpQf0NbcClvBksfrr_jOpZCraiog3-J
π Algorithms Fundamental: youtube.com/playlist?list=PLSIpQf0NbcCk2O05hkxHPtVqGRGtnClh8
π Coding Interview Questions: youtube.com/playlist?list=PLSIpQf0NbcCm1HjcbM6aAoDUdpZyS1YBP
π All hackerrank solutions: youtube.com/watch?v=oz_yowFTrgs&list=PLSIpQf0NbcCltzNFrOJkQ4J4AAjW3TSmA
π TOP 10 LEARNING RESOURCES
1) Cracking the Coding Interview :amzn.to/30HFJCE
2) Algorithms Hardcover :amzn.to/30Hjdd9
3) The Algorithm Design Manual :amzn.to/2AEtEDL
4) Data Structures & Algorithms in Java :amzn.to/2AG82ag
5) Data Structures and Algorithms Made Easy :amzn.to/2M8UvNK
6) Grokking Algorithms :amzn.to/2LKu8yD
7) Dynamic Programming for Coding Interviews :amzn.to/2AC7BO9
8) Introduction to Algorithms :amzn.to/2oSJAzq
9) Elements of Programming Interviews in Java :amzn.to/30MBjKO
10) Programming Interviews Exposed :amzn.to/2V8mFfO
π Letβs Connect βΊ
Git Hub: github.com/kanahaiya
Twitter: twitter.com/Kanahaiyagupta
Linked in: linkedin.com/in/kanahaiya-gupta
Facebook: facebook.com/coolkanahaiya
Instagram: instagram.com/javaaid.algorithms
#JAVAAID #slidingwindowtechnique #leetcode #javaAidTutorials #programming #dataStructures #algorithms #coding #competitiveprogramming #google #java #codinginterview #problemsolving #kanahaiyaGupta #google #facebook #amazon #oracle #linkedin
DISCLAIMER: These above-mentioned resources have affiliate links, which means if you buy one of the products from my links, I might receive a small commission without having an extra cost to you. This helps support the channel and allows us to continue to add more tutorial. Thank you for your support!
NOTE: All above-shared learning resources are best of my knowledge as I have personally read all except one Introduction to Algorithms.



![How To Solve HackerRank Drawing Book Problem
In this video, I have explained hackerrank drawing book solution algorithm.
hackerrank drawing book problem can be solved by using mathematics. The complexity of drawing book hackerrank solution is O (1). This hackerrank problem is a part of Practice | Algorithms | Implementation | Drawing Book hackerrank challenge.
For simplicity, I have divided this hackerrank tutorial into 3 parts.
[00:00]Understanding the problem statement.
[03:24] Building the logic to solve the problem.
[08:48] Coding the logic using java (you can use your own preferred programming language).
π΄ DONT CLICK THIS: https://bit.ly/2G4cEuc
π Like us on Facebook: https://www.facebook.com/HackerRankSolutionTutorials
πShare this video with a YouTuber friend: https://youtu.be/aM2Y2PeXrhk
β Join our community βΊ
π Coding interview preparation group: https://www.facebook.com/groups/codingip
π Telegram link: https://t.me/hackerranksolutions
π Resources βΊ
π Problem statement: https://www.hackerrank.com/challenges/drawing-book/problem
π Source code: https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/DrawingBook.java
β
Recommended playlists βΊ
π All hackerrank solutions: https://www.youtube.com/watch?v=oz_yowFTrgs&list=PLSIpQf0NbcCltzNFrOJkQ4J4AAjW3TSmA
π Letβs Connect βΊ
Git Hub: https://github.com/kanahaiya
Twitter: https://twitter.com/Kanahaiyagupta
Linked in: https://www.linkedin.com/in/kanahaiya-gupta
Facebook: https://www.facebook.com/coolkanahaiya
Instagram: https://www.instagram.com/coolkanahaiya
#JAVAAID #HackerRankSolutions #HackerRankTutorials #implementation #drawingbook #HackerRank #JavaAidTutorials #Programming #DataStructures #algorithms #coding #competitiveprogramming #JavaAidTutorials #Java #codinginterview #problemsolving #KanahaiyaGupta #hackerrankchallenges How To Solve HackerRank Drawing Book Problem](https://i.ytimg.com/vi/aM2Y2PeXrhk/mqdefault.jpg)
![Jumping On The Clouds HackerRank Solution [One Liner Solution]
π Must Join Coding interview preparation group: https://www.facebook.com/groups/codingip
jumping on the clouds solution: In this video, I have solved hackerrank jumping on the clouds problem in ONE LINE.
This hackerrank problem is a part of Practice | Algorithms| Implementation | Jumping on the Clouds hackerrank challenge.
For simplicity, I have divided this hackerrank tutorial into 3 parts.
[00:00] Understanding the problem statement.
[06:27] Building the logic to solve the problem.
[23:15] Coding the logic using java (you can use your own preferred programming language).
π΄ DONT CLICK THIS: https://bit.ly/2G4cEuc
π Like us on Facebook: https://www.facebook.com/HackerRankSolutionTutorials
πShare this video with your friend: https://youtu.be/aY3UcgrHXrE
β Join our community βΊ
π Coding interview preparation group: https://www.facebook.com/groups/codingip
π Telegram link for algorithmic tutorial: https://t.me/javaaid
π Telegram link for hackerrank solutions: https://t.me/hackerranksolutions
π Resources βΊ
π Problem statement: https://www.hackerrank.com/challenges/jumping-on-the-clouds/problem
π‘ Source code: https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/JumpingOnTheClouds.java
β
Recommended playlists βΊ
π All hackerrank solutions: https://www.youtube.com/watch?v=oz_yowFTrgs&list=PLSIpQf0NbcCltzNFrOJkQ4J4AAjW3TSmA
π New To JAVAAID ? Watch These Videos: https://www.youtube.com/watch?v=pVS3yhlzrlQ&list=PLSIpQf0NbcClvBksfrr_jOpZCraiog3-J
π Algorithms Fundamental: https://www.youtube.com/playlist?list=PLSIpQf0NbcCk2O05hkxHPtVqGRGtnClh8
π Coding Interview Questions: https://www.youtube.com/playlist?list=PLSIpQf0NbcCm1HjcbM6aAoDUdpZyS1YBP
π Dynamic Programming Tutorial For Beginner: https://www.youtube.com/watch?v=ewXklhesC-w&list=PLSIpQf0NbcClDpWE58Y-oSJro_W3LO8Nb
π Letβs Connect βΊ
Facebook: https://www.facebook.com/coolkanahaiya
Instagram: https://www.instagram.com/javaaid.algorithms
Git Hub: https://github.com/kanahaiya
Twitter: https://twitter.com/Kanahaiyagupta
Linked in: https://www.linkedin.com/in/kanahaiya-gupta
#jumpingontheclouds #JAVAAID #HackerRankSolutions #implementation #HackerRank #JavaAidTutorials #programming #DataStructures #algorithms #coding #competitiveprogramming #java #codinginterview #problemsolving #KanahaiyaGupta #hackerrankchallenges Jumping On The Clouds HackerRank Solution [One Liner Solution]](https://i.ytimg.com/vi/aY3UcgrHXrE/mqdefault.jpg)


![Repeated String HackerRank Solution [Optimal Approach]
Repeated String HackerRank Solution: In this video, I have solved hackerrank Repeated String problem within a given time limit.
π Must Join Coding interview preparation group: https://www.facebook.com/groups/codingip
This hackerrank problem is a part of Practice | Algorithms| Implementation | Repeated String hackerrank challenge.
For simplicity, I have divided this hackerrank tutorial into 3 parts.
[00:00] Understanding the problem statement.
[05:16] Building the logic to solve the problem.
[13:10] Coding the logic using java (you can use your own preferred programming language).
π΄ DONT CLICK THIS: https://bit.ly/2G4cEuc
π Like us on Facebook: https://www.facebook.com/HackerRankSolutionTutorials
πShare this video with your friend: https://youtu.be/d5xLkTvJDWY
β Join our community βΊ
π Coding interview preparation group: https://www.facebook.com/groups/codingip
π Telegram link for algorithmic tutorial: https://t.me/javaaid
π Telegram link for hackerrank solutions: https://t.me/hackerranksolutions
π Resources βΊ
π Problem statement: https://www.hackerrank.com/challenges/repeated-string/problem
π‘ Source code: https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/RepeatedString.java
β
Recommended playlists βΊ
π All hackerrank solutions: https://www.youtube.com/watch?v=oz_yowFTrgs&list=PLSIpQf0NbcCltzNFrOJkQ4J4AAjW3TSmA
π New To JAVAAID ? Watch These Videos: https://www.youtube.com/watch?v=pVS3yhlzrlQ&list=PLSIpQf0NbcClvBksfrr_jOpZCraiog3-J
π Algorithms Fundamental: https://www.youtube.com/playlist?list=PLSIpQf0NbcCk2O05hkxHPtVqGRGtnClh8
π Coding Interview Questions: https://www.youtube.com/playlist?list=PLSIpQf0NbcCm1HjcbM6aAoDUdpZyS1YBP
π Dynamic Programming Tutorial For Beginner: https://www.youtube.com/watch?v=ewXklhesC-w&list=PLSIpQf0NbcClDpWE58Y-oSJro_W3LO8Nb
π Letβs Connect βΊ
Facebook: https://www.facebook.com/coolkanahaiya
Instagram: https://www.instagram.com/javaaid.algorithms
Git Hub: https://github.com/kanahaiya
Twitter: https://twitter.com/Kanahaiyagupta
Linked in: https://www.linkedin.com/in/kanahaiya-gupta
#repeatedstring #JAVAAID #HackerRankSolutions #implementation #HackerRank #JavaAidTutorials #programming #DataStructures #algorithms #coding #competitiveprogramming #java #codinginterview #problemsolving #KanahaiyaGupta #hackerrankchallenges Repeated String HackerRank Solution [Optimal Approach]](https://i.ytimg.com/vi/d5xLkTvJDWY/mqdefault.jpg)

![How To Solve Diagonal Difference HackerRank Problem [O(N) Solution] | HackerRank Solution
In this video, I have explained hackerrank diagonal difference solution algorithm.
hackerrank diagonal difference problem can be solved by using one for loop. The complexity of diagonal difference hackerrank solution is O (n). This hackerrank problem is a part of Practice | Algorithms | Warmup | Diagonal difference hackerrank challenge.
For simplicity, I have divided this hackerrank tutorial into 3 parts.
[00:00] Understanding the problem statement.
[01:00] Building the logic to solve the problem.
[10:55] Coding the logic using java (you can use your own preferred programming language).
π΄ DONT CLICK THIS: https://bit.ly/2G4cEuc
π Like us on Facebook: https://www.facebook.com/HackerRankSolutionTutorials
πShare this video with a YouTuber friend: https://youtu.be/f6bTIsj9ne8
β Join our community βΊ
π Coding interview preparation group: https://www.facebook.com/groups/codingip
π Telegram link: https://t.me/hackerranksolutions
π Resources βΊ
π Problem statement: https://www.hackerrank.com/challenges/diagonal-difference/problem
π‘ Source code: https://github.com/Java-aid/Hackerrank-Solutions/blob/master/HackerRankDashboard/CoreCS/GeneralProgramming/src/main/java/com/javaaid/hackerrank/solutions/generalprogramming/basicprogramming/DiagonalDifference.java
β
Recommended playlists βΊ
π All hackerrank solutions: https://www.youtube.com/watch?v=oz_yowFTrgs&list=PLSIpQf0NbcCltzNFrOJkQ4J4AAjW3TSmA
π Letβs Connect βΊ
Git Hub: https://github.com/kanahaiya
Twitter: https://twitter.com/Kanahaiyagupta
Linked in: https://www.linkedin.com/in/kanahaiya-gupta
Facebook: https://www.facebook.com/coolkanahaiya
Instagram: https://www.instagram.com/coolkanahaiya
#JAVAAID #diagonaldifference #HackerRankSolutions #HackerRankTutorials #HackerRank #JavaAidTutorials #programming #DataStructures #algorithms #coding #competitiveprogramming #java #codinginterview #problemsolving #KanahaiyaGupta #hackerrankchallenges #warmup How To Solve Diagonal Difference HackerRank Problem [O(N) Solution] | HackerRank Solution](https://i.ytimg.com/vi/f6bTIsj9ne8/mqdefault.jpg)
![Recursive Staircase Problem | Climbing Stairs | Walmart Coding Interview | EP3
Recursive Staircase Problem :- In this video, I have explained the recursive staircase problem fibonacci series pattern to solve count the number of ways to climb the staircase dynamic programming question. Climbing staircase problem can be solved easily by deducing fibonacci series pattern.
I have used FAST method to solve this DP problem.
After watching this video, you will be able to solve any dynamic programming problem which is based on fibonacci pattern.
Here are the Outlines:
0:36 problem statement
2:00 approach one [Solve the problem for smaller input]
6:50 deduce the pattern from series
7:53 fibonacci vs staircase problem
10:06 approach two [solve the problem in a reverse way]
13:10 FAST method to solve any dynamic programming problem
13:36 recursive solution to the staircase problem
14:29 complexity analysis for recursive approach
16:20 analyze the problem and look for overlapping problems
17:09 memoization technique to save the computation[Top down approach by using cache on global level]
18:29 memoization technique to save the computation[Top down approach by using cache as a method argument]
19:00 pure DP solution [bottom up approach]
20:08 efficient solution
21:36 pattern analysis
24:40 key take away from this lesson
25:40 demo
π΄ DONT CLICK THIS: https://bit.ly/2G4cEuc
β€ FAST Technique To Solve Any DP Problems: https://youtu.be/ftpbBbtyxdE
π Like us on Facebook: https://www.facebook.com/HackerRankSolutionTutorials
πShare this video with your friend: https://youtu.be/pVS3yhlzrlQ
π‘ Source code: https://gist.github.com/kanahaiya/9ab87eb465c0cb0e69b9358d50d75c6b
β Join our community βΊ
π Coding interview preparation group: https://www.facebook.com/groups/codingip
π Telegram link for algorithmic tutorial: https://t.me/javaaid
π Telegram link for hackerrank solutions: https://t.me/hackerranksolutions
β
Recommended playlists βΊ
π Dynamic Programming Tutorial For Beginner: https://www.youtube.com/watch?v=ewXklhesC-w&list=PLSIpQf0NbcClDpWE58Y-oSJro_W3LO8Nb
π New To JAVAAID ? Watch These Videos: https://www.youtube.com/watch?v=pVS3yhlzrlQ&list=PLSIpQf0NbcClvBksfrr_jOpZCraiog3-J
π Algorithms Fundamental: https://www.youtube.com/playlist?list=PLSIpQf0NbcCk2O05hkxHPtVqGRGtnClh8
π Coding Interview Questions: https://www.youtube.com/playlist?list=PLSIpQf0NbcCm1HjcbM6aAoDUdpZyS1YBP
π All hackerrank solutions: https://www.youtube.com/watch?v=oz_yowFTrgs&list=PLSIpQf0NbcCltzNFrOJkQ4J4AAjW3TSmA
π Try below problems to master the concept:
Hackerrank problem :https://www.hackerrank.com/challenges/ctci-recursive-staircase/problem?h_l=interview&playlist_slugs%5B%5D=interview-preparation-kit&playlist_slugs%5B%5D=recursion-backtracking
Leetcode problem :https://leetcode.com/problems/climbing-stairs/
HackerEarth problem :https://www.hackerearth.com/practice/algorithms/dynamic-programming/introduction-to-dynamic-programming-1/practice-problems/algorithm/staircase/None/
Interviewbit problem :https://www.interviewbit.com/problems/stairs/
π TOP 10 LEARNING RESOURCES
1) Cracking the Coding Interview :https://amzn.to/30HFJCE
2) Algorithms Hardcover :https://amzn.to/30Hjdd9
3) The Algorithm Design Manual :https://amzn.to/2AEtEDL
4) Data Structures & Algorithms in Java :https://amzn.to/2AG82ag
5) Data Structures and Algorithms Made Easy :https://amzn.to/2M8UvNK
6) Grokking Algorithms :https://amzn.to/2LKu8yD
7) Dynamic Programming for Coding Interviews :https://amzn.to/2AC7BO9
8) Introduction to Algorithms :https://amzn.to/2oSJAzq
9) Elements of Programming Interviews in Java :https://amzn.to/30MBjKO
10) Programming Interviews Exposed :https://amzn.to/2V8mFfO
π Letβs Connect βΊ
Git Hub: https://github.com/kanahaiya
Twitter: https://twitter.com/Kanahaiyagupta
Linked in: https://www.linkedin.com/in/kanahaiya-gupta
Facebook: https://www.facebook.com/coolkanahaiya
Instagram: https://www.instagram.com/coolkanahaiya
#JAVAAID #staircasepattern #fibonacciseries #hackerRank #javaAidTutorials #programming #dataStructures #algorithms #coding #competitiveprogramming #javaAidTutorials #java #codinginterview #problemsolving #kanahaiyaGupta #hackerrankchallenges Recursive Staircase Problem | Climbing Stairs | Walmart Coding Interview | EP3](https://i.ytimg.com/vi/ftpbBbtyxdE/mqdefault.jpg)