codelink:https://ide.codingblocks.com/s/188792
please correct my code and specify my error
Exchanging coins code problem
hey @Divya_321 since n can be as big as 10^9 making array of size n would cause errors, so try to use map. here is link to the code adjusted accordingly
https://ide.codingblocks.com/s/188800
1 Like
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
1 Like