Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest leaf …
A Palindrome string is a string that mirrors itself, for example, ’12a21′ reverse is the same string and ‘abcde’ is not. A Palindrome number is a integer number that …
April 6, 2013
algorithms, assembly language, c / c++, code, compiler, implementation, interpreter / compiler, math, object pascal, optimization, programming languages, tricks
In mathematics, the absolute function is defined as: This function is simple, and quite in popular usages. The absolute value is considered as one of the fundamental operations in …
Simulated Annealing (SA) is a meta-hurestic search approach for general problems. It is based on the process of cooling down metals. The search algorithm is simple to describe however …