Annoying problem

Revision en1, by AshToady, 2022-01-17 17:14:25

here's my code to the most annoying problem i've ever encountered(its a recent one, so you probably know it),

i'm getting 2147483647 runtime error.

Having submitted over 15/20 codes over a period of a week, and researching on it, i'm sure my algorithm is correct, have checked it innumerable times.

To simplify the logic-> its grouping numbers with matching largest bits and feeding it to calc function for further recursion till required.

what is this error 2147483647? i've faced it many times, but never really understood it, it always magically somehow gets resolved, except this time.

need help!

and if you can spot the mistake, kindly let me know.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English AshToady 2022-01-17 17:14:25 749 Initial revision (published)