Help Needed. Modified Binary Search.
Difference between en2 and en3, changed 519 character(s)
I recently gave an OA for a startup a few days back, I could not solve it then, looking for solution now. I am a noobie/learner. I really appreciate help.↵
![ ](/predownloaded/9b/ce/9bce2b1850c15fb4830317b09f30c1c663f78981.jpeg)↵
![ ](/predownloaded/9d/a9/9da90080f5131bbcc272e49c541308e53058567a.jpeg)↵

Problem in a nutshell: Return the count of all permutations whose signature is equal to the signature provided in the problem. Signature of permutation p is a binary string(consisting of 0's and 1's), if signature[i] = 1 then the element i can be successful found using the given binary search algorithm on the permutation p else if signature[i] = 0 then the element i cannot be searched using the binary search algorithm (provided in the pseudo code). Constraints: The size of the signature string can be atmost 50. 

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English NoobCoder000 2022-09-27 17:48:35 519
en2 English NoobCoder000 2022-09-27 16:56:55 149
en1 English NoobCoder000 2022-09-27 16:55:17 193 Initial revision (published)