Maximum Value Sum by Placing Three Rooks II (Leetcode BiWeekly 137)

  Рет қаралды 589

Soumya Bhattacharjee

Soumya Bhattacharjee

Күн бұрын

Watch in 1.5X
Here I have provided the solution and explanation of the 4th problem of Leetcode BiWeekly 137
Code: leetcode.com/c...
#leetcode #Leetcode #Weekly #programming #cp #codechef #codeforces

Пікірлер: 3
@TarunSantani
@TarunSantani 26 күн бұрын
Didn't understand the part of the pigeon hole principle. - how did you use it ? Can you explain it in somewhat easy way.
@soumyabhattacharjee1051
@soumyabhattacharjee1051 25 күн бұрын
Pigeon hole principle says that if there are N numbers and we are taking N+1 numbers then at least one number bound to get repeated. Similar concept here, let say if the N+M-1 cells are from the same row and same column of the current cell and we take N+M+1 max cells then we are going to find the max and second max excluding all the cells of the current cell's row and column If you find this helpful, please like and subscribe
@TarunSantani
@TarunSantani 25 күн бұрын
@@soumyabhattacharjee1051 ok thank you I will rewatch the video
Find the Power of K-Size Subarrays II (Leetcode BiWeekly 137)
7:23
Soumya Bhattacharjee
Рет қаралды 57
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 14 МЛН
АЗАРТНИК 4 |СЕЗОН 1 Серия
40:47
Inter Production
Рет қаралды 1,3 МЛН
The Number of Beautiful Subsets - Leetcode 2597 - Python
32:34
NeetCodeIO
Рет қаралды 10 М.
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 501 М.
G. Sakurako's Task (Codeforces Round 970(Div. 3) )
10:30
Soumya Bhattacharjee
Рет қаралды 90
Ground Reality of Tier 3 colleges is Horrifying
12:13
Harkirat Singh
Рет қаралды 197 М.
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,9 МЛН
AI isn't gonna keep improving
22:11
Theo - t3․gg
Рет қаралды 182 М.
Running "Hello World!" in 10 FORBIDDEN Programming Languages
18:07
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 286 М.
The LeetCode Fallacy
6:08
NeetCode
Рет қаралды 502 М.
LeetCode 1937 - Maximum Number of Points With Cost - Java
23:09
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 14 МЛН