随笔分类 -  LeetCode

摘要:题目: 一个机器人位于 m x n 网格的右上角. 机器人只能向右或者向下. 机器人试图到达右下角. 问有多少种不重复的路径? 上图是一个 3 x 7 的网格. m 和 n 最大为 100. 链接: https://leetcode.com/problems/unique paths/ 方法一: 自 阅读全文
posted @ 2016-01-27 04:28 CloudFlew 阅读(220) 评论(0) 推荐(0)
摘要:题目: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the... 阅读全文
posted @ 2016-01-24 19:19 CloudFlew 阅读(1532) 评论(0) 推荐(1)