I have written binary search solution for the question SMARKET.
Here is my solution Binary_Search_Approach
Only four of the total test cases passed. Someone please point out the error I have done . I have documented my code, that might help you to know the logic for the code.
Thanks in advance.