题目:backpack I (每个物品取一次,求最多能装多少物品) Given n items with size Ai, an integer...
题型 1. 排序:两个或多个array(一般是sorted)按照某规则排序 88. Merge Sorted Array283. Move Ze...
层遍历问题 问题:Binary Tree Level Order Traversal Given a binary tree, return t...
问题: Next Greater Element I You are given two arrays (without duplicates)...
题目:Add Two Numbers You are given two non-empty linked lists representing...
1. 加法: 问题: Calculate the sum of two integers a and b, but you are not al...
题目 Given an array of n integers where n > 1, nums, return an array outpu...
题目:Contains Duplicate Given an array of integers, find if the array cont...
问题:Reverse Linked List Reverse a singly linked list. Input: 链表头结点 :: Lis...