- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 fields must be fully assigned before control is returned to the caller解决方案
话说某天你写下这样的代码:struct Foo{ private int bar; public int Bar { get { return bar;} set { bar = value;} } public Foo(int val) { this
2015-10-24 00:07:44 1175
原创 LeetCode292——Nim Game(一行代码解决)
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the
2015-10-20 23:58:46 9811 10
原创 屏幕颜色提取器(小巧,绿色,zip/20.2k)
这是一个我写的小应用,本文将讲解如何实现这么个软件。只想下载屏幕颜色提取器戳这里:http://pan.baidu.com/s/1qWEaSXI这是一个较实用的应用。有时我们使用某种看到的颜色,但又不知道什么值,这时,这个软件就排上用场了,我也是多次出现这种需求,正好自己也正在学习C#,于是才决定自己写一个玩玩。凭直觉来看,这个小玩意不会难,事实上也是如此。要想提取颜色,我
2015-10-16 22:54:49 7836 1
原创 判断一个字符串是不是回文(C#解法)
假设用户输入一个字符串,允许有空格,要你判断它是不是个回文字符串?如:“a b c d c b a" 是一个回文字符串而 ”a b c d b b a“ 则不是一个一个回文字符串。下面是C#的实现方式:class Palindrome{ static public void PalindromeMain() { System.Console
2015-10-02 21:53:28 7421
原创 LeetCode260——Single Number III精彩解法
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.For example:Given
2015-10-01 00:02:45 895
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人