摘要:
https://leetcode.com/problems/contains-duplicate/Given an array of integers, find if the array contains any duplicates. Your function should return tr... 阅读全文
摘要:
https://leetcode.com/problems/combination-sum-iii/ Find all possible combinations of k numbers that add up to a number n, given that only numbers from 阅读全文
摘要:
https://leetcode.com/problems/merge-sorted-array/Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may ass... 阅读全文
摘要:
https://leetcode.com/problems/reverse-linked-list/Reverse a singly linked list.解题思路:类似于插入排序,始终将当前节点插入到最前方。/** * Definition for singly-linked list. * p... 阅读全文
摘要:
https://leetcode.com/problems/binary-tree-postorder-traversal/Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given... 阅读全文