Bob and String
CodeChefOpen on judge ↗
Bob and String Bob is playing with string. A binary string (which contains only zero and one) is called good if its starts and ends with character '1'. "010101010" and "00000" are not good strings while "1010001" and "111111" are good strings. You are given an integer N and your task to find the no of good strings of length N help bob to find the answer of the problem. Input - The first lin
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.
Sign in to chat with the tutor and save your progress.
Sign in to start