摘要: Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen 阅读全文
posted @ 2015-04-08 15:56 Grandyang 阅读(39557) 评论(5) 推荐(3) 编辑
摘要: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining. Exampl 阅读全文
posted @ 2015-04-08 14:46 Grandyang 阅读(43701) 评论(8) 推荐(0) 编辑
摘要: Download Git for windowsOpen Git BashType in "ssh-keygen -t rsa", and then press Enter button three timesYou can find the public key in the "file id_r... 阅读全文
posted @ 2015-04-08 03:55 Grandyang 阅读(583) 评论(0) 推荐(0) 编辑
摘要: Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*' where: '?' Matches any single character. 阅读全文
posted @ 2015-04-08 01:39 Grandyang 阅读(30852) 评论(22) 推荐(2) 编辑
Fork me on GitHub