My code is working very well for the given test case but on submitting all the test cases are resulting into “wrong answer” . As i am new to this platform, so can you please help me out, where find the test cases as on coding ninjas platform we can simply download them from the option given their.
Unable to find what is going wrong while submitting the code
Hey @himanshu_goyal
You can download test cases under solution part but that will cost u points? I mean you may not get full marks after unlocking them.
And in Coding Ninjas also u don’t get the actual test cases they are extra sample test cases.
so is there any extra sample test cases over which i can test my program.
Nope ,you have to think of test cases on your own.
Share your code I will help u debug the same.
do i need to enable my collaboration mode
No ,
Copy your code here
Press Ctrl+s and then share the url
Hey! Kartik can you help me now to resolve my doubt
Please share your code in Coding Blocks IDE
hey it was working fine for the inputs you have given but it fails in other test cases.
Done, Thank you( The problem was in int data type. When i use long instead of int the, it passed all the test cases)