I solved this problem ( A very very interesting DP solution I guess )
The key to the solution is First try to Prove that the last bit can be set using only 15 ones
and you will get the solution.
Keep thinking!!!
( A clue :- use Mathematical Induction for the Proof and the DP follows)
-karthik
- [algogeeks] Re: An interesting problem from Code4bi... Karthik Singaram L
- [algogeeks] Re: An interesting problem from Co... Richa Minda
- [algogeeks] Re: An interesting problem fro... Dhyanesh
- [algogeeks] donald knuth .. SUDARSHAN IYENGAR
- [algogeeks] Re: donald knuth .. Vikram Venkatesan
- [algogeeks] Re: An interesting problem... Richa Minda
- [algogeeks] Re: An interesting problem from Co... himanshu
- [algogeeks] Re: An interesting problem fro... prick
- [algogeeks] Re: An interesting problem fro... neeraj goel
- [algogeeks] Re: An interesting problem... Prunthaban Kanthakumar
- [algogeeks] Re: An interesting pro... Karthik Singaram L
