随笔分类 - LeetCode
摘要:题目: 一个机器人位于 m x n 网格的右上角. 机器人只能向右或者向下. 机器人试图到达右下角. 问有多少种不重复的路径? 上图是一个 3 x 7 的网格. m 和 n 最大为 100. 链接: https://leetcode.com/problems/unique paths/ 方法一: 自
阅读全文
摘要:题目: 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...
阅读全文

浙公网安备 33010602011771号