摘要:
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For 阅读全文
摘要:
Given two integers n and k, return all possible combinations of k numbers out of 1,2,...,n. 题目二:给定一个数组arr[]和一个整数k,在数组中选择元素组成一个长度为K的数组,打印最终的子数组 Example 阅读全文