Skip to content

Instantly share code, notes, and snippets.

View walterhuangsz's full-sized avatar

WalterHuang walterhuangsz

  • Antiy Labs
  • ShenZhen China
View GitHub Profile
@walterhuangsz
walterhuangsz / MonkeyMoveBanana.cs
Created November 14, 2012 03:01
Monkey carry banana
namespace MonkeyMoveBanana
{
class Program
{
static void Main(string[] args)
{
int left = CalculateMaxBananaLeft(50, 100, 50, 1);
Console.WriteLine(left);
Console.ReadKey();
}
@walterhuangsz
walterhuangsz / AmazingString.cs
Created November 5, 2012 09:46
Reading by Amazing String
namespace AmazingString
{
class Program
{
private static Random random = new Random();
static void Main(string[] args)
{
string sentence = "Covariant and contravariant generic type parameters provide greater flexibility in assigning and using generic types";