Remainder When Divided By 11
Number N may be very large.
The first line contains an integer 'T' denoting the number of test cases to be run. The 'T' test cases follow. The first line of each test case contains a single number 'N' in the form of a string.
For each test case, print an integer denoting the remainder when 'N' is divided by 11.
1 <= T <= 5 1 <= length of N <= 10 ^ 6 Time Limit: 1 sec
Longest Palindromic Substring
Merge Two Sorted Arrays Without Extra Space