In STL section there is a program “Activity selection problem” https://online.codingblocks.com/app/player/176096/content/171028/5280/code-challenge
In this problem I have made a 2d array to input starting and finishing time than I have made an array with all elements as -1 then I have check if the finishing time of an activity matches the starting time of another activity than both the activities will be counted using a counter “c” and to check that one activity should be selected only one time I have applied binary search but still I am getting wrong answer . Can you help me out?