June_sixth
June_sixth
全部文章
题解
归档
标签
去牛客网
登录
/
注册
June_sixth的博客
全部文章
/ 题解
(共3篇)
题解 | #旋转链表#
struct ListNode* rotateLinkedList(struct ListNode* head, int k ) { // write code here int count=0; struct ListNode*c=head; while(c) ...
C
2022-06-21
0
278
题解 | #接雨水问题#
// 两次遍历:从左向右得到动态最大值;从右到左得到动态最大值 long long maxWater(int* arr, int arrLen ) { // write&...
C
2022-03-02
0
253
#打家劫舍#(一)
// 动态规划出最大值和第二大的值,并不断更新最大值 int rob(int* nums, int numsSize) { if (numsSize == 1) { ...
C
2022-03-02
0
292