Making Strings
CodeChefOpen on judge ↗
You are given N. You have to count the number of binary strings (consists of only '0' and '1') of length 2*N such that the number of '1's in first string of length N is double of the number of '1's in second string of length N. Print the answer modulo 109+7. Input First line contains T, the number of test cases. Each test case consists of one integer N. Output For each test case print require
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