Convert a non-negative integer to its English words representation. Given input is guaranteed to be less than 231 – 1. For example, 123 – “One Hundred Twenty Three” 12345 …
I came across this simple question: A entry level math question for kids, A, B, C and D are 1-digit number from 0 to 9, find all possibilities for …
This puzzle is from Leetcode Online Judge and this may appear quite often during interviews. This puzzle asks you to find the minimal sum for a number triangle. You …
September 20, 2014
BASH Shell, beginner, c / c++, code, code library, console, I/O File, implementation, programming languages, windows, windows command shell
On Linux BASH shell, the ‘nl’ utility is used to print out text file (or string) with line numbers. If you type in nl –help you will have a …
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Input: , , ] Output: Example …