string - What is lexicographical order? - Stack Overflow This simply means "dictionary order", i e , the way in which words are ordered in a dictionary If you were to determine which one of the two words would come before the other in a dictionary, you would compare the words letter by the letter starting from the first position
c - How to find the nth digit of number 1 to n? - Stack Overflow As usual, there is a simple answer, and a complex answer The simple answer has already been described by Clifford in another answer: Construct the sequence of numbers as a string, then pick the i'th character from it
How to quickly tell if an unknown number is divisible by 3? I'm trying to tackle down a problem where the time limit is very low (1 second) and the number of cases is supposedly high You need to tell if a number is divisible by 3, but the problem is that