The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like thi…
分类:LeetCode
[LeetCode] Combinations 组合项
Given two integers n and k, return all possible combinations of k numbers out …
[LeetCode] House Robber II 打家劫舍之二,House Robber,House Robber,House Robber,House Robber
You are a professional robber planning to rob houses along a street. Each house has a certain amount of…
[LeetCode] Distribute Candies 分糖果
Given an integer array with even length, where different numbers in this array represent diff…
[LeetCode] Coin Path 硬币路径
Given an array A (index starts at 1) consisting of N integers: A1, A2, …, AN …
[LeetCode] Trim a Binary Search Tree 修剪一棵二叉搜索树
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tr…
LeetCode | Multiply Strings
题目: Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numb…
[Leetcode] 001 Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You …
[LeetCode] Ransom Note 赎金条
Given an arbitrary ransom note string and another string containing letters from all the …
162. Find Peak Element
A peak element is an element that is greater than its neighbors.Given an input array nums, where nums[i] ≠ num…
350. Intersection of Two Arrays II
Given two arrays, write a function to compute their intersection. Example: Given nums1 = [1, 2, 2, 1], nums2 =…
43. Multiply Strings
43. Multiply Strings 题目 Given two non-negative integers num1 and num2 represented as strings, return the produ…