← All problemsSign in

Maximum Value (Easy Version)

You are provided with two binary strings named $S$ and $T$ of length $N$ and $M$, respectively. You have to choose a subsequence $G$ of $S$ and a subsequence $H$ of $T$ such that the length of $G$ must be equal to the length of $H$. There is a function $F(X)$, such that: $F(X) = 2*Len(G) / (1 + 2*|X|)$ Where: $X$ = Binary string formed after converting $G$ and $H$ to binary integers and taking

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start