We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
If anyone solve the problem in C but fail only on test case 1,
comment out the "exit".
Test case 1 has bad input, last char == -47 (signed) or 209 (unsigned), not '\0' regardless.
Left Rotation
You are viewing a single comment's thread. Return to all comments →
If anyone solve the problem in C but fail only on test case 1, comment out the "exit". Test case 1 has bad input, last char == -47 (signed) or 209 (unsigned), not '\0' regardless.
if (a_item_endptr == a_item_str || *a_item_endptr != '\0') { // exit(EXIT_FAILURE); }