An interesting problem that I couldn't solve

Revision en1, by JahonaliX, 2025-02-27 06:46:15

Hi everyone.

Please help me to solve this problem.

You are given a binary string s which is permutation of 0000000000000001111111111111111 (15 0s and 16 1s), you should find x such that s is lexiographic xth permutation of 0000000000000001111111111111111.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English JahonaliX 2025-02-27 06:46:15 305 Initial revision (published)