InterLeave Blocks+meme war

How to approach the problem InterLeave Blocks from ZCO 2020

2 Likes

Hint till the editorial is out : DP[A][B][K][2]. dp[a][b][k][0] represents the number of ways we can interleave first a and b terms of array A and B respectively to form exactly k blocks of equal numbers, and the last term in the interleaved subsequence is from array A (from array B if the last value is 1 instead of 0)
Look at this problem which is quite similar.

On mobile rn so cant give a detailed explanation

2 Likes

Such hint, much wow!

At least describe your DP states, base case and recurrence relation :stuck_out_tongue: !

EDIT: Nice, your edited answer is much better :stuck_out_tongue: :smiley:

9 Likes

Itna pr0 kaise
I used DP[A][B][K][2]

3 Likes

Proud of you Mod!

8 Likes

7 Likes

3 Likes

HAHAHAHAHA

THANK YOU XDDDDDDDDDD. I AM DEAD SOMEONE HELP ME XDXD.

Best laugh since a few recent months XDDDD

2 Likes

4 Likes

Hahaha upload again I don’t mind

3 Likes

3i2t5x

11 Likes

6 Likes

3i2tve

7 Likes

He is not editorialist LOL.
This meme is for editorialist :stuck_out_tongue:
ig @infinitepro

2 Likes

spam spam spam

somebody lock it(wait the mod is also involved in the spam )now who will lock it??
lol

When codechef has meme wars : “Codechef is filled with spam. Codeforces has so much of informative talks”
When codeforces has meme wars : “This is so much fun. Coders are awesome memeists”

5 Likes

it was intended to be a joke

this is so true

1 Like

The effort on memes is legit

4 Likes

I will. 1-2 memes are fine. But a meme war is definitely injustice to this post. @ashish_arora please make a new post if you still need help. Sorry for the inconvenience :slight_smile:

2 Likes