
leetcode
pirlo-san
这个作者很懒,什么都没留下…
展开
-
leetcode 17 电话号码的字母组合(Letter Combinations of a Phone Number)
题目Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is g...原创 2019-09-27 10:01:06 · 141 阅读 · 0 评论 -
leetcode 19 删除链表尾部第N个元素(Remove Nth Node From End of List)
题目描述Given a linked list, remove the n-th node from the end of list and return its head.Example:Given linked list: 1->2->3->4->5, and n = 2.After removing the second node from the end,...原创 2019-09-28 16:23:22 · 203 阅读 · 0 评论 -
leetcode 23 合并K个排序链表(Merge k Sorted Lists)
题目描述Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.Example:Input:[ 1->4->5, 1->3->4, 2->6]Output: 1->1->2->3->...原创 2019-10-01 15:13:04 · 127 阅读 · 0 评论