首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
基础学习课
实战项目课
求职辅导课
专栏&文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
斐波那契额
获赞
6
粉丝
1
关注
0
看过 TA
2
男
Philips Exeter Academy
2028
服装/纺织设计
IP属地:陕西
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑斐波那契额吗?
发布(97)
评论
刷题
收藏
斐波那契额
关注TA,不错过内容更新
关注
2024-11-15 17:32
Philips Exeter Academy 服装/纺织设计
题解 | #跳台阶#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param number int整型 # @return int整型 # class Solution: def jumpFloor(self, number: int) -> int: if number == 1: return 1 if number == 2: return 2 a = 1 b = 2 c = 3 i = 3 ...
0
点赞
评论
收藏
分享
2024-11-15 16:46
Philips Exeter Academy 服装/纺织设计
题解 | #斐波那契数列#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param n int整型 # @return int整型 # class Solution: def Fibonacci(self , n: int) -> int: a = 1 b = 1 c = 1 i = 3 while i <= n: c = a + b a = b b = c i += 1 ...
0
点赞
评论
收藏
分享
2024-11-15 16:26
Philips Exeter Academy 服装/纺织设计
题解 | #斐波那契数列#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param n int整型 # @return int整型 # class Solution: def __init__(self): self.cache = {} def Fibonacci(self , n: int) -> int: if n < 3: return 1 if self.cache.get(n) is not None: return self.c...
0
点赞
评论
收藏
分享
2024-11-12 17:49
Philips Exeter Academy 服装/纺织设计
2024-11-12
在牛客打卡103天,今天学习:刷题 1 道/代码提交 1 次
每日监督打卡
0
点赞
评论
收藏
分享
2024-11-12 17:46
Philips Exeter Academy 服装/纺织设计
题解 | #单链表的排序#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param head ListNode类 the head node # @return ListNode类 # class Solution: def recur_cut(self, head: ListNode, tail: ListNode) -> ListNode: ...
0
点赞
评论
收藏
分享
2024-11-07 15:32
Philips Exeter Academy 服装/纺织设计
题解 | #链表相加(二)#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param head1 ListNode类 # @param head2 ListNode类 # @return ListNode类 # class Solution: def list_reverse(self, head: ListNode) -> ListNode: ...
0
点赞
评论
收藏
分享
2024-11-04 17:10
Philips Exeter Academy 服装/纺织设计
2024-11-04
在牛客打卡102天,今天学习:代码提交 4 次
每日监督打卡
0
点赞
评论
收藏
分享
2024-11-04 14:16
Philips Exeter Academy 服装/纺织设计
题解 | #两个链表的第一个公共结点#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # # @param pHead1 ListNode类 # @param pHead2 ListNode类 # @return ListNode类 # class Solution: def FindFirstCommonNode(self , pHead1 , pHead2 ): # write code here if pHead1 is None...
0
点赞
评论
收藏
分享
2024-06-24 17:20
Philips Exeter Academy 服装/纺织设计
题解 | #链表中倒数最后k个结点#
/*class ListNode { * val: number * next: ListNode | null * constructor(val?: number, next?: ListNode | null) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * } * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * ...
0
点赞
评论
收藏
分享
2024-06-24 16:24
Philips Exeter Academy 服装/纺织设计
题解 | #链表中环的入口结点#
/*class ListNode { * val: number * next: ListNode | null * constructor(val?: number, next?: ListNode | null) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * } * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * ...
0
点赞
评论
收藏
分享
2022-12-31 13:38
Philips Exeter Academy 服装/纺织设计
题解 | #合并k个已排序的链表#
/*class ListNode { * val: number * next: ListNode | null * constructor(val?: number, next?: ListNode | null) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * } * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * ...
0
点赞
评论
收藏
分享
2022-12-30 22:10
Philips Exeter Academy 服装/纺织设计
2022-12-30
在牛客打卡101天,今天也很努力鸭!
每日监督打卡
0
点赞
评论
收藏
分享
2022-12-29 21:34
Philips Exeter Academy 服装/纺织设计
2022-12-29
在牛客打卡100天,今天学习:刷题 2 道/代码提交 2 次
每日监督打卡
0
点赞
评论
收藏
分享
2022-12-29 21:34
Philips Exeter Academy 服装/纺织设计
题解 | #链表中的节点每k个一组翻转#
分组翻转,在每一组内用front, mid, back三个指针,每次调整mid指向的节点 /*class ListNode { * val: number * next: ListNode | null * constructor(val?: number, next?: ListNode | null) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * } * } */ /** ...
0
点赞
评论
收藏
分享
2022-12-29 16:26
Philips Exeter Academy 服装/纺织设计
题解 | #链表内指定区间反转#
/*class ListNode { * val: number * next: ListNode | null * constructor(val?: number, next?: ListNode | null) { * this.val = (val===undefined ? 0 : val) * this.next = (next===undefined ? null : next) * } * } */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * *...
0
点赞
评论
收藏
分享
1
2
3
4
5
6
7
创作者周榜
更多
关注他的用户也关注了:
牛客网
牛客企业服务