Tag: coding exercise
September 14, 2014
algorithms, BASH Shell, batch script, beginner, code, code library, console, data structure, implementation, linux, programming languages, Shell Scripts
If you major in Computer Science, you must know the 8-queens problem, which is a classical Artificial Intelligent problem that can be solved using back tracing. Previous posts can …
Do you want to compute such numbers in two seconds? such as 85 x 85, 97 x 93, 23 x 27 … ? Multiplication of two digits (from 10 …
Given a string that consists of words (non-space characters count as part of a word), you are required to output the new sentence that reverses the words. For example, …
April 4, 2014
algorithms, beginner, c / c++, code, code library, implementation, interview questions, leetcode online judge, math, programming languages, string
The sequence is interesting. It starts from ‘1’. The next number always counts the previous number in digits one by one. For example, the second number in the series …
The Dynamic Programming DP is one of the most-used approach to solve problems that satisfy the overlapping sub-problems and the optimal substructures. The simplest example is to compute Fibonacci …