摘要:
Move Zeroes (E) 题目 Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero element 阅读全文
摘要:
Reverse Nodes in k-Group (H) 题目 Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive inte 阅读全文
摘要:
Swap Nodes in Pairs (M) 题目 Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, 阅读全文
摘要:
Merge k Sorted Lists (H) 题目 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4- 阅读全文
摘要:
Generate Parentheses (M) 题目 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given 阅读全文