- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Day 78/90 | 🔥 Search & Minimum in Rotated Array II | LeetCode 81 + 154 🚀#9
Telegram Channel : https://t.me/ctobhaiya_tg
Instagram: https://www.instagram.com/ctobhaiya
Linkedin: https://www.linkedin.com/in/anuj-kumar-a-k-a-cto-bhaiya-on-youtube-9a188968
Github: https://github.com/team-codebug/babua-dsa-patterns-course
Notes: https://github.com/team-codebug/babua-dsa-patterns-course/blob/main/78_Day
Master two important rotated sorted array problems with duplicates using binary search.
In this video, we solve:
81. Search in Rotated Sorted Array II
154. Find Minimum in Rotated Sorted Array II
Both problems are slightly trickier than their original versions because the array can contain duplicate values. Duplicates create confusion in binary search because sometimes we cannot clearly decide which half is sorted.
For example:
[1, 0, 1, 1, 1]
Here, nums[low], nums[mid], and nums[high] can all be equal, making it difficult to know whether the left half or right half is sorted.
In this video, we cover:
What changes when duplicates are allowed
Why normal rotated binary search is not always enough
How duplicate values create ambiguity
The role of low, mid, and high
How to safely shrink the search space
Detailed dry run for Search in Rotated Sorted Array II
Detailed dry run for Find Minimum in Rotated Sorted Array II
Java code explanation
Time and space complexity
Why the worst-case time complexity can become O(n)
For Search in Rotated Sorted Array II, we learn how to handle the confusing case:
if (nums[low] == nums[mid] && nums[mid] == nums[high]) {
low++;
high--;
}
For Find Minimum in Rotated Sorted Array II, we learn why this condition is useful:
if (nums[mid] greater than nums[high]) {
low = mid + 1;
} else if (nums[mid] less than nums[high]) {
high = mid;
} else {
high--;
}
These two problems are perfect for understanding how binary search changes when duplicate values are present.
This video is useful for anyone preparing for coding interviews, LeetCode practice, DSA patterns, and mastering modified binary search problems.
Hashtags:
#leetcode
#leetcode81
#leetcode154
#searchinrotatedsortedarray
#findminimuminrotatedsortedarray
#rotatedsortedarray
#binarysearch
#modifiedbinarysearch
#binarysearchpatterns
#duplicatesinarray
#arrayproblems
#dsapatterns
#datastructures
#algorithms
#dsa
#javaprogramming
#leetcodejava
#codinginterview
#codinginterviewprep
#interviewpreparation
#faangpreparation
#placements
Your Queries:
leetcode 81
leetcode 154
search in rotated sorted array ii
find minimum in rotated sorted array ii
rotated sorted array with duplicates
binary search
modified binary search
binary search patterns
duplicates in binary search
array problems
leetcode java
java solution
coding interview
dsa
data structures algorithms
faang preparation
placement preparation
leetcode medium
leetcode hard
CHAPTERS
00:00 - Introduction
03:09 - LeetCode 81 - Approach 1 - Theory
47:12 - LeetCode 81 - Approach 1 - Code
51:43 - LeetCode 154 - Approach 1 - Theory
01:19:24 - LeetCode 154 - Approach 1 - Code
01:22:30 - Conclusion
#DSAPatterns2025 #DSAin90Days #CodingInterviewPreparation #FAANGPreparation #LeetCodePatterns #CTOBhaiya #DSAMastery #DataStructuresAndAlgorithms #CodingInterviewBootcamp #LearnDSA #CodingChallenge #ProblemSolvingPatterns #ZeroToHeroDSA #ThinkInPatterns #90DayDSAChallenge #DSAPlaybook #CrackFAANG #JavaDSA #PythonDSA #CodingJourney #FAANGInterviewPrep #IITianDSACourse #DSACourse2025 #LearnCodeCrack #DSAPlaylist #CrackCodingInterviews #ProgrammingLogic #DSACompleteCourse #DSARevision #DSAStudyPlan
Your Queries:
leetcode 3266
final array state after k multiplication operations II
leetcode heap problems
priority queue dsa
greedy algorithm leetcode
heap interview questions
coding interview preparation
dsa patterns heap
leetcode hard problems
array transformation problems
competitive programming heap
optimize k operations
java dsa solutions
python heap solution
faang interview prep
data structures algorithms
leetcode explained
coding practice problems
==========================
➡️ Connect with me:
Linkedin: https://www.linkedin.com/in/anuj-kumar-a-k-a-cto-bhaiya-on-youtube-9a188968
Instagram: https://www.instagram.com/ctobhaiya
Telegram Channel : https://t.me/ctobhaiya_tg
==========================
Видео Day 78/90 | 🔥 Search & Minimum in Rotated Array II | LeetCode 81 + 154 🚀#9 канала CTO Bhaiya
Instagram: https://www.instagram.com/ctobhaiya
Linkedin: https://www.linkedin.com/in/anuj-kumar-a-k-a-cto-bhaiya-on-youtube-9a188968
Github: https://github.com/team-codebug/babua-dsa-patterns-course
Notes: https://github.com/team-codebug/babua-dsa-patterns-course/blob/main/78_Day
Master two important rotated sorted array problems with duplicates using binary search.
In this video, we solve:
81. Search in Rotated Sorted Array II
154. Find Minimum in Rotated Sorted Array II
Both problems are slightly trickier than their original versions because the array can contain duplicate values. Duplicates create confusion in binary search because sometimes we cannot clearly decide which half is sorted.
For example:
[1, 0, 1, 1, 1]
Here, nums[low], nums[mid], and nums[high] can all be equal, making it difficult to know whether the left half or right half is sorted.
In this video, we cover:
What changes when duplicates are allowed
Why normal rotated binary search is not always enough
How duplicate values create ambiguity
The role of low, mid, and high
How to safely shrink the search space
Detailed dry run for Search in Rotated Sorted Array II
Detailed dry run for Find Minimum in Rotated Sorted Array II
Java code explanation
Time and space complexity
Why the worst-case time complexity can become O(n)
For Search in Rotated Sorted Array II, we learn how to handle the confusing case:
if (nums[low] == nums[mid] && nums[mid] == nums[high]) {
low++;
high--;
}
For Find Minimum in Rotated Sorted Array II, we learn why this condition is useful:
if (nums[mid] greater than nums[high]) {
low = mid + 1;
} else if (nums[mid] less than nums[high]) {
high = mid;
} else {
high--;
}
These two problems are perfect for understanding how binary search changes when duplicate values are present.
This video is useful for anyone preparing for coding interviews, LeetCode practice, DSA patterns, and mastering modified binary search problems.
Hashtags:
#leetcode
#leetcode81
#leetcode154
#searchinrotatedsortedarray
#findminimuminrotatedsortedarray
#rotatedsortedarray
#binarysearch
#modifiedbinarysearch
#binarysearchpatterns
#duplicatesinarray
#arrayproblems
#dsapatterns
#datastructures
#algorithms
#dsa
#javaprogramming
#leetcodejava
#codinginterview
#codinginterviewprep
#interviewpreparation
#faangpreparation
#placements
Your Queries:
leetcode 81
leetcode 154
search in rotated sorted array ii
find minimum in rotated sorted array ii
rotated sorted array with duplicates
binary search
modified binary search
binary search patterns
duplicates in binary search
array problems
leetcode java
java solution
coding interview
dsa
data structures algorithms
faang preparation
placement preparation
leetcode medium
leetcode hard
CHAPTERS
00:00 - Introduction
03:09 - LeetCode 81 - Approach 1 - Theory
47:12 - LeetCode 81 - Approach 1 - Code
51:43 - LeetCode 154 - Approach 1 - Theory
01:19:24 - LeetCode 154 - Approach 1 - Code
01:22:30 - Conclusion
#DSAPatterns2025 #DSAin90Days #CodingInterviewPreparation #FAANGPreparation #LeetCodePatterns #CTOBhaiya #DSAMastery #DataStructuresAndAlgorithms #CodingInterviewBootcamp #LearnDSA #CodingChallenge #ProblemSolvingPatterns #ZeroToHeroDSA #ThinkInPatterns #90DayDSAChallenge #DSAPlaybook #CrackFAANG #JavaDSA #PythonDSA #CodingJourney #FAANGInterviewPrep #IITianDSACourse #DSACourse2025 #LearnCodeCrack #DSAPlaylist #CrackCodingInterviews #ProgrammingLogic #DSACompleteCourse #DSARevision #DSAStudyPlan
Your Queries:
leetcode 3266
final array state after k multiplication operations II
leetcode heap problems
priority queue dsa
greedy algorithm leetcode
heap interview questions
coding interview preparation
dsa patterns heap
leetcode hard problems
array transformation problems
competitive programming heap
optimize k operations
java dsa solutions
python heap solution
faang interview prep
data structures algorithms
leetcode explained
coding practice problems
==========================
➡️ Connect with me:
Linkedin: https://www.linkedin.com/in/anuj-kumar-a-k-a-cto-bhaiya-on-youtube-9a188968
Instagram: https://www.instagram.com/ctobhaiya
Telegram Channel : https://t.me/ctobhaiya_tg
==========================
Видео Day 78/90 | 🔥 Search & Minimum in Rotated Array II | LeetCode 81 + 154 🚀#9 канала CTO Bhaiya
leetcode 81 leetcode 154 search in rotated sorted array ii find minimum in rotated sorted array ii rotated sorted array with duplicates binary search modified binary search binary search patterns duplicates in binary search array problems leetcode java java solution coding interview dsa data structures algorithms faang preparation placement preparation leetcode medium leetcode hard
Комментарии отсутствуют
Информация о видео
6 мая 2026 г. 16:30:02
01:22:52
Другие видео канала





















