3212. Count Submatrices With Equal Frequency of X and Y | Weekly Leetcode 405

  Рет қаралды 1,283

codingMohan

codingMohan

Күн бұрын

Пікірлер: 20
@ashmitaroy797
@ashmitaroy797 6 ай бұрын
great explanation
@quyhoaphantruong7453
@quyhoaphantruong7453 6 ай бұрын
Love you sir😍. Learning from you for 1 years and a half, my leetcode rating go from top 77% to 18% (from be able to solve 1 question to 3 questions) :))
@k-CE-OmkarPathak
@k-CE-OmkarPathak 6 ай бұрын
Well Explained
@souravshaw8904
@souravshaw8904 6 ай бұрын
Nice explanation 💯
@imPriyansh77
@imPriyansh77 6 ай бұрын
Thanks for very intuitive solution bhaiya!! Studied about 2D prefix sum application for the very first time
@AryanAryan-ks5ib
@AryanAryan-ks5ib 6 ай бұрын
sir in the third row the prefix sum is 2 or is it 3 am i making a mistake on calculating that;here are the timestamps that i am talking about 13:38
@gigachad2419
@gigachad2419 6 ай бұрын
weekly 4th? What is Rolling Hash and how is it paired with dp?
@codingmohan
@codingmohan 6 ай бұрын
Basically it's just prefix sum with hashing. I have explained that multiple times in different weekly contest problems. Search for hashing and you'll get it. I am facing difficulty in getting my hashing solution accepted because TC is too strict. Do you see any accepted rolling hash solution? PS: When I see solution of others, most of them will not survive various scenarios. I've contributed a test case to LC, if they merge it then they might relax the time constraint a bit as well.
@gigachad2419
@gigachad2419 6 ай бұрын
@@codingmohan no sir I haven't found any rolling hash solutions. But i still don't understand why Trie+DP won't work. What edge case does it fail in. And when we check for the hints of this question, LeetCode still says try Tries+DP. Does this indicate Trie+DP will be considered as valid for the contest?
@codingmohan
@codingmohan 6 ай бұрын
Here is the solution - kzbin.info/www/bejne/ZnbVoXyugJ6Ei6s
@gigachad2419
@gigachad2419 6 ай бұрын
@@codingmohan tysm sir
@krishanusaha5212
@krishanusaha5212 6 ай бұрын
Bhaiya kalka 4th question disscus karo please
@codingmohan
@codingmohan 6 ай бұрын
Here you go - kzbin.info/www/bejne/eoWnhp9_m7WtiKc
@krishanusaha5212
@krishanusaha5212 6 ай бұрын
@@codingmohan thanks bhaiya
@imPriyansh77
@imPriyansh77 6 ай бұрын
He has just uploaded
@sudhadevi6692
@sudhadevi6692 6 ай бұрын
Bhaiya kl ka 4th question plz❤
@codingmohan
@codingmohan 6 ай бұрын
Here you go - kzbin.info/www/bejne/eoWnhp9_m7WtiKc
@sudhadevi6692
@sudhadevi6692 6 ай бұрын
@@codingmohan a hug to u ❤️
@imPriyansh77
@imPriyansh77 6 ай бұрын
He has just uploaded
@aayushsharma1697
@aayushsharma1697 5 ай бұрын
Very well explained🙂
3213. Construct String with Minimum Cost | Weekly Leetcode 405
50:55
3250. Find the Count of Monotonic Pairs I | Weekly Leetcode 410
20:00
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН
Their Boat Engine Fell Off
0:13
Newsflare
Рет қаралды 15 МЛН
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 2 МЛН
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 88 М.
3225. Maximum Score From Grid Operations | Leetcode Biweekly 135
1:04:57
3219. Minimum Cost for Cutting Cake II | Weekly Leetcode 406
1:03:26
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 2,5 МЛН
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 301 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 847 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН