1. you can still use constant space dp notice how dp[i][j] only depends on dp[i-1][j] and dp[i][j-1], you only need to store the i-1th row and the j-1th column
2. Combinatorics will take linear space because you'll most likely use memoization since there will be more than one query.
2026-11-17 10:49:21
3
Belial :
combination problem
2026-11-13 10:22:36
15
Biel :
Combination
2026-11-18 02:40:29
11
Rei :
isn't this is just some high school math?
2026-11-13 19:14:21
19
wateeny :
You're welcome
2026-11-14 21:19:49
1
Sillygoose :
32 is my guess
2026-11-14 06:09:35
0
fishkobih2 :
it's just m+n chose m
2026-11-13 18:24:03
0
jizzing_johnny :
yeah i knew that
2026-11-18 06:15:04
0
Mastermind :
may I ask
what if you use counting principles of probability
2026-11-17 01:17:19
0
_KatsukiMan :
How would u do the math equation in js?
2026-11-20 18:24:15
0
Sin.Name :
Permutation
2026-11-13 06:06:32
1
lokmih :
егэ информатика круто
2026-11-14 13:11:27
0
Rob :
Fuckin probabilities smh
2026-11-13 03:17:04
6
Mavenox :
THİS is 10.th grade math what are you talking about just use factorial
2026-11-13 05:27:40
4
To see more videos from user @sixforeight, please go to the Tikwm
homepage.