codingMohan
codingMohan
  • 373
  • 501 263
3297. Count Substrings That Can Be Rearranged to Contain a String I | Weekly Leetcode 416
Segment Tree Series - bit.ly/segment-trees
DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html
Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html
*************************************************
Contest Link - leetcode.com/contest/weekly-contest-416
Problem Link - leetcode.com/contest/weekly-contest-416/problems/count-substrings-that-can-be-rearranged-to-contain-a-string-ii/
Solution - leetcode.com/problems/count-substrings-that-can-be-rearranged-to-contain-a-string-i/solutions/5819091/video-explanation-journey-from-o-n-n-c-o-n-c-logn-o-n-c-o-n/
*************************************************
Timestamps -
00:00 - Agenda
00:35 - Problem Description
02:25 - [Brute Force] Algorithm
04:58 - [Brute Force] Pseudo code & Time Complexity
06:35 - [Optimization 1] Reuse the frequency -- O(N*N*C)
07:35 - [Optimization 2] Breaking at just 1st "r" -- O(N*N*C)
11:18 - [Optimization 3] Intuition of Binary search for "r"
15:20 - [Optimization 3] Computing whether [l, r] is valid in O(C)
21:12 - [Optimization 3] Pseudo code & Time Complexity
24:41 - [Optimization 4] Intuition to 2 Pointers
32:30 - [Optimization 4] Pseudo code & Time Complexity
*************************************************
Interview Experiences Playlists -
Microsoft - th-cam.com/play/PL9TOCZErLZcOsCBZPQ3uIMzak6gQWG_Kp.html
Amazon - th-cam.com/play/PL9TOCZErLZcMFSmxoEpNBxvQfWOgRmsfX.html
D.E.Shaw - th-cam.com/play/PL9TOCZErLZcM8nwVeW4d7JyxcpH175IZ1.html
Linkedin - th-cam.com/play/PL9TOCZErLZcMN56ITB1IkNUs10QnaEyAe.html
Facebook - th-cam.com/play/PL9TOCZErLZcNIcaPV8WeHdXHPgAstBf2E.html
*********************************************************************
Please show support and subscribe if you find the content useful.
มุมมอง: 1 167

วีดีโอ

3298. Count Substrings That Can Be Rearranged to Contain a String II | Weekly Leetcode 416
มุมมอง 6954 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-416 Problem Link - leetcode.com/contest/weekly-contest-416/problems/count-substrings-that-can-be-rearranged-to-contain-a-string-ii/ Solution - leetcode.com/pr...
3287. Find the Maximum Sequence Value of Array | Leetcode Biweekly 139
มุมมอง 1.6K4 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees Contest Link - leetcode.com/contest/biweekly-contest-139/ Problem Link - leetcode.com/contest/biweekly-contest-139/problems/find-the-maximum-sequence-value-of-array/description/ Solution - leetcode.com/problems/find-the-maximum-sequence-value-of-array/solutions/5790538/video-explanation-dissecting-problem-step-by-step-with-intuition-why-not-recursion/ ...
3291. Minimum Number of Valid Strings to Form Target I | Weekly Leetcode 415
มุมมอง 1.3K4 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html Contest Link - leetcode.com/contest/weekly-contest-415 Problem Link - leetcode.com/contest/weekly-contest-415/problems/minimum-number-of-valid-strings-to-form-target-i/ Solution - leetcode.com/problems/minimum-number-of-valid-strings-to-form-target-ii/solutions/5789212/video-explanat...
3292. Minimum Number of Valid Strings to Form Target II | Weekly Leetcode 415 | Z-Algorithm
มุมมอง 1K4 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees Similar Hashing Problems - 1. th-cam.com/video/8kMq8WyCpj0/w-d-xo.html 2. th-cam.com/video/1thnThrIzwg/w-d-xo.html 3. th-cam.com/video/hRd3ZlTBkEs/w-d-xo.html DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Z-Algorithm - cp-algorithms.com/string/z-function....
3283. Maximum Number of Moves to Kill All Pawns | Weekly Leetcode 414
มุมมอง 8084 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-414 Problem Link - leetcode.com/contest/weekly-contest-414/problems/maximum-number-of-moves-to-kill-all-pawns/description/ Solution - leetcode.com/problems/ma...
3277. Maximum XOR Score Subarray Queries | Weekly Leetcode 413
มุมมอง 1K4 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-413 Problem Link - leetcode.com/contest/weekly-contest-413/problems/maximum-xor-score-subarray-queries/ Solution - leetcode.com/problems/maximum-xor-score-sub...
3276. Select Cells in Grid With Maximum Score | Weekly Leetcode 413
มุมมอง 1.6K4 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-413 Problem Link - leetcode.com/contest/weekly-contest-413/problems/select-cells-in-grid-with-maximum-score/ Solution - leetcode.com/problems/select-cells-in-...
3267. Count Almost Equal Pairs II | Weekly Leetcode 412
มุมมอง 7254 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-412 Problem Link - leetcode.com/contest/weekly-contest-412/problems/count-almost-equal-pairs-ii/ Solution - leetcode.com/problems/count-almost-equal-pairs-ii/...
3266. Final Array State After K Multiplication Operations II | Weekly Leetcode 412
มุมมอง 1.5K4 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-412 Problem Link - leetcode.com/contest/weekly-contest-412/problems/final-array-state-after-k-multiplication-operations-ii/ Solution - leetcode.com/problems/f...
3250. Find the Count of Monotonic Pairs I | Weekly Leetcode 410
มุมมอง 1.5K5 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-409 Problem Link -leetcode.com/contest/weekly-contest-410/problems/find-the-count-of-monotonic-pairs-i/ Solution - leetcode.com/problems/find-the-count-of-mon...
3251. Find the Count of Monotonic Pairs II | Weekly Leetcode 410
มุมมอง 2.1K5 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees DP Playlist - th-cam.com/play/PL9TOCZErLZcNxIHWVRcJbVTvgRgLFcgHC.html Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-409 Problem Link -leetcode.com/contest/weekly-contest-410/problems/find-the-count-of-monotonic-pairs-ii/ Solution - leetcode.com/problems/find-the-count-of-mo...
3245. Alternating Groups III | Weekly Leetcode 409
มุมมอง 1.5K5 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-409 Problem Link - leetcode.com/contest/weekly-contest-409/problems/alternating-groups-iii/description/ Solution - leetcode.com/problems/alternating-groups-iii/solutions/5585945/video-explanation-starting-from-brute-force-and-op...
3244. Shortest Distance After Road Addition Queries II | Weekly Leetcode 409
มุมมอง 1.3K5 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-409 Problem Link - leetcode.com/contest/weekly-contest-409/problems/shortest-distance-after-road-addition-queries-ii/description/ Solution - leetcode.com/problems/shortest-distance-after-road-addition-queries-ii/solutions/558407...
3235. Check if the Rectangle Corner Is Reachable | Weekly Leetcode 408
มุมมอง 1.3K5 หลายเดือนก่อน
Segment Tree Series - bit.ly/segment-trees Hashing Playlist - th-cam.com/play/PL9TOCZErLZcPVi_Nt-bHCwH9GtV-nz93c.html Contest Link - leetcode.com/contest/weekly-contest-408 Problem Link - leetcode.com/contest/weekly-contest-408/problems/check-if-the-rectangle-corner-is-reachable/ Solution - leetcode.com/problems/check-if-the-rectangle-corner-is-reachable/solutions/5547478/video-explanation-intu...
3234. Count the Number of Substrings With Dominant Ones | Weekly Leetcode 408
มุมมอง 5K5 หลายเดือนก่อน
3234. Count the Number of Substrings With Dominant Ones | Weekly Leetcode 408
3225. Maximum Score From Grid Operations | Leetcode Biweekly 135
มุมมอง 1.9K6 หลายเดือนก่อน
3225. Maximum Score From Grid Operations | Leetcode Biweekly 135
3229. Minimum Operations to Make Array Equal to Target | Weekly Leetcode 407
มุมมอง 9326 หลายเดือนก่อน
3229. Minimum Operations to Make Array Equal to Target | Weekly Leetcode 407
3218. Minimum Cost for Cutting Cake I | Weekly Leetcode 406
มุมมอง 4926 หลายเดือนก่อน
3218. Minimum Cost for Cutting Cake I | Weekly Leetcode 406
3219. Minimum Cost for Cutting Cake II | Weekly Leetcode 406
มุมมอง 4576 หลายเดือนก่อน
3219. Minimum Cost for Cutting Cake II | Weekly Leetcode 406
3213. Construct String with Minimum Cost | Weekly Leetcode 405
มุมมอง 1.2K6 หลายเดือนก่อน
3213. Construct String with Minimum Cost | Weekly Leetcode 405
3209. Number of Subarrays With AND Value of K | Leetcode Biweekly 134
มุมมอง 8016 หลายเดือนก่อน
3209. Number of Subarrays With AND Value of K | Leetcode Biweekly 134
3212. Count Submatrices With Equal Frequency of X and Y | Weekly Leetcode 405
มุมมอง 1.3K6 หลายเดือนก่อน
3212. Count Submatrices With Equal Frequency of X and Y | Weekly Leetcode 405
3202. Find the Maximum Length of Valid Subsequence II | Weekly Leetcode 404
มุมมอง 1.6K6 หลายเดือนก่อน
3202. Find the Maximum Length of Valid Subsequence II | Weekly Leetcode 404
3203. Find Minimum Diameter After Merging Two Trees | Weekly Leetcode 404
มุมมอง 8046 หลายเดือนก่อน
3203. Find Minimum Diameter After Merging Two Trees | Weekly Leetcode 404
3197. Find the Minimum Area to Cover All Ones II | Weekly Leetcode 403
มุมมอง 1.1K6 หลายเดือนก่อน
3197. Find the Minimum Area to Cover All Ones II | Weekly Leetcode 403
3186. Maximum Total Damage With Spell Casting | Weekly Leetcode 402
มุมมอง 9257 หลายเดือนก่อน
3186. Maximum Total Damage With Spell Casting | Weekly Leetcode 402
3187. Peaks in Array | Weekly Leetcode 402
มุมมอง 6147 หลายเดือนก่อน
3187. Peaks in Array | Weekly Leetcode 402
3170. Lexicographically Minimum String After Removing Stars | Weekly Leetcode 400
มุมมอง 4367 หลายเดือนก่อน
3170. Lexicographically Minimum String After Removing Stars | Weekly Leetcode 400
3171. Find Subarray With Bitwise AND Closest to K | 2 different Approaches | Weekly Leetcode 400
มุมมอง 1.3K7 หลายเดือนก่อน
3171. Find Subarray With Bitwise AND Closest to K | 2 different Approaches | Weekly Leetcode 400