上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 26 下一页
摘要: LeetCode 面试题10 II. 青蛙跳台阶问题【剑指Offer】【Easy】【Python】【动态规划】 问题 "力扣" 一只青蛙一次可以跳上1级台阶,也可以跳上2级台阶。求该青蛙跳上一个 n 级的台阶总共有多少种跳法。 答案需要取模 1e9+7(1000000007),如计算初始结果为:10 阅读全文
posted @ 2020-03-27 18:49 Wonz 阅读(364) 评论(0) 推荐(0) 编辑
摘要: LeetCode 面试题10 I. 斐波那契数列【剑指Offer】【Easy】【Python】【动态规划】 问题 "力扣" 写一个函数,输入 n ,求斐波那契(Fibonacci)数列的第 n 项。斐波那契数列的定义如下: 斐波那契数列由 0 和 1 开始,之后的斐波那契数就是由之前的两数相加而得出 阅读全文
posted @ 2020-03-27 18:16 Wonz 阅读(251) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0914. X of a Kind in a Deck of Cards卡牌分组【Easy】【Python】【数学】 Problem "LeetCode" In a deck of cards, each card has an integer written on it. Ret 阅读全文
posted @ 2020-03-27 16:35 Wonz 阅读(146) 评论(0) 推荐(0) 编辑
摘要: LeetCode 面试题62. 圆圈中最后剩下的数字【剑指Offer】【Easy】【Python】【数学】 问题 "力扣" 0,1,,n 1这n个数字排成一个圆圈,从数字0开始,每次从这个圆圈里删除第m个数字。求出这个圆圈里剩下的最后一个数字。 例如,0、1、2、3、4这5个数字组成一个圆圈,从数字 阅读全文
posted @ 2020-03-24 20:56 Wonz 阅读(188) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1390. Four Divisors四因数【Medium】【Python】【数学】 Problem "LeetCode" Given an integer array , return the sum of divisors of the integers in that arr 阅读全文
posted @ 2020-03-24 09:36 Wonz 阅读(168) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1389. Create Target Array in the Given Order按既定顺序创建目标数组【Easy】【Python】【数组】 Problem "LeetCode" Given two arrays of integers and . Your task is 阅读全文
posted @ 2020-03-24 09:12 Wonz 阅读(188) 评论(0) 推荐(0) 编辑
摘要: LeetCode 1386. Cinema Seat Allocation安排电影院座位【Medium】【Python】【哈希表】 Problem "LeetCode" A cinema has rows of seats, numbered from 1 to and there are ten 阅读全文
posted @ 2020-03-24 09:00 Wonz 阅读(401) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0113. Path Sum II路径总和 II【Medium】【Python】【回溯】 Problem "LeetCode" Given a binary tree and a sum, find all root to leaf paths where each path's 阅读全文
posted @ 2020-03-23 23:32 Wonz 阅读(121) 评论(0) 推荐(0) 编辑
摘要: LeetCode 面试题34. 二叉树中和为某一值的路径【剑指Offer】【Medium】【Python】【回溯】 问题 "力扣" 输入一棵二叉树和一个整数,打印出二叉树中节点值的和为输入整数的所有路径。从树的根节点开始往下一直到叶节点所经过的节点形成一条路径。 示例: 给定如下二叉树,以及目标和 阅读全文
posted @ 2020-03-23 23:23 Wonz 阅读(235) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0876. Middle of the Linked List链表的中间结点【Easy】【Python】【双指针】 Problem "LeetCode" Given a non empty, singly linked list with head node , return a 阅读全文
posted @ 2020-03-23 22:39 Wonz 阅读(146) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 26 下一页