Painter's partition problem


why i am getting wrong answer for some cases

@Harshit13

  1. Your answer can exceed the range of int. Use long long int.
  2. Your final answer will not be in ‘start’ . Use a seperate variable to store your final answer and update it whenever the c<=k condition is met.