
链表
鸡蛋豆腐仙子
从本科开始讨厌了单片机 晶体管 编程 c++5-6年后,发现技术就是我的真爱,再重新选择一次,我还是会选择当程序员。我现在觉得自己什么都不会,可是还是相信会变成别人仰望的大神。
展开
-
【刷题】Leetcode 341. Flatten Nested List Iterator
Example 1:Input: [[1,1],2,[1,1]]Output: [1,1,2,1,1]Explanation: By calling next repeatedly until hasNext returns false,the order of elements returned by next should be: [1,1,2,1,1].Example 2:Inp...原创 2019-11-25 09:50:15 · 189 阅读 · 0 评论 -
【刷题】Leetcode 148. Sort List
Example 1:Input: 4->2->1->3Output: 1->2->3->4/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { va...原创 2019-11-19 12:55:05 · 79 阅读 · 0 评论