
題目:backpack I (每個物品取一次,求最多能裝多少物品) Given n items with size Ai, an integer...
題型 1. 排序:兩個或多個array(一般是sorted)按照某規(guī)則排序 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: 鏈表頭結(jié)點 :: Lis...