← All problemsSign in

GIRLFRIENDS DEMAND

Problem description. Chef Neel's girlfriend is angry with him. Chef wants to please her. Since she loves to play with some very large binary strings. She gives the Chef a task to find the kth character of the string generated by the formula. S[i]=S[i-1]+'0'+switch(reverse(a[i-1])). S[0]=0 switch(String a) function returns the string having its each bit toggled i.e. if the ith character of the

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