Leecode
交换喜悲
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Leecode 21合并两个有序列表
Merge Two Sorted Lists You are given the heads of two sorted linked lists list1 and list2. Merge the two lists in a one sorted list. The list should be made by splicing together the nodes of the first two lists. Return the head of the merged linked list..原创 2022-04-02 12:41:48 · 169 阅读 · 0 评论 -
【Leecode】1652. Defuse the Bomb
【c++】 题目描述如下: 你有一颗炸弹要拆除,你的时间不多了!您的告密者将为您提供一个 长度为的圆形数组 和一个密钥。codenk 要解密代码,您必须替换每个数字。所有的号码都更换同时。 如果k > 0,则用下一个数字的总和替换该数字。ith k 如果k < 0,则用先前数字的总和替换该数字。ith k 如果k == 0,则将数字替换为。ith0 与code循环一样,下一个元素code[n-1]是code[0],前一个元素code[0]是code[n-1]。 给定循环数组code和整数密钥k,原创 2021-11-30 20:56:12 · 4332 阅读 · 0 评论
分享