Example of using HTC sensor api to get Light sensor value and set backlight level in modern HTC phones. This app will replace original autobacklight level regulator and add more customizable options.
Genetic Algorithm example using Java
You have 10 cards numbered 1 to 10.
You have to divide them into 2 piles so that:
The sum of the first pile is as close as possible to 36 and the product of all in second pile is as close as poss to 360.