|
|
The problem is, that you have two print calls (one in |
|
One code path in your find_last function fails to return value. That is find_last never execute return statement when find_first returns -1. Correct version:
|
|
thank you guys for your fast response..I will try to re-write it based on your suggestion |