Category: algorithms
Last Friday, @justyy hosted a rock-sicssors-papers wechat group contest for CN community and the contest is going on fire! The robot player just plays randomly without any intelligence at …
In last post, three voting strategies were presented. But we are not sure if there are better ones. Let’s review this: vote all once you wake up vote all …
This is a interesting math puzzle: X, Y and Z is an integer between 0 to 9. so what are they? We can write a PowerShell script to search …
Let’s see this question: If Jack starts at A, and he can only travels one move at a time to the north or east, and he cannot go back. …
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. For example, given two integers x=1 and y=4, the hamming distance …