Https://ide.codingblocks.com/#/s/29719

https://ide.codingblocks.com/#/s/29719

recursive subsequence is giving wrong ans please see as i feel that implementation is correct
https://hack.codingblocks.com/contests/c/512/73

https://ide.codingblocks.com/#/s/29768

you have to take test cases. I have corrected your code.