摘要: Given a string containing just the characters'(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the c 阅读全文
posted @ 2016-03-10 09:23 哥布林工程师 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. "A man, a plan, a canal: Panama" is a pa 阅读全文
posted @ 2016-03-10 06:46 哥布林工程师 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space 阅读全文
posted @ 2016-03-10 06:37 哥布林工程师 阅读(165) 评论(0) 推荐(0) 编辑
摘要: A robot is located at the top-left corner of a m x ngrid (marked 'Start' in the diagram below). The robot can only move either down or right at any po 阅读全文
posted @ 2016-03-10 06:25 哥布林工程师 阅读(112) 评论(0) 推荐(0) 编辑