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.
and if you can spot the mistake, kindly let me know.