- 博客(10)
- 收藏
- 关注
转载 LC 387. First Unique Character in a String
题目描述Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1.Examples:s = "leetcode"return 0.s = "loveleetcode",return 2....
2019-10-02 01:11:00 105
转载 LC 599. Minimum Index Sum of Two Lists
题目描述Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings.You need to help them find out theircommon interes...
2019-09-30 22:12:00 105
转载 LC 1. Two Sum
题目介绍Given an array of integers, returnindicesof the two numbers such that they add up to a specific target.You may assume that each input would haveexactlyone solution, and you may not us...
2019-09-30 19:05:00 104
转载 LC 202. Happy Number
问题描述Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of th...
2019-09-30 00:07:00 100
转载 LC 349. Intersection of Two Arrays
题目描述Given two arrays, write a function to compute their intersection.Example 1:Input: nums1 = [1,2,2,1], nums2 = [2,2]Output: [2]Example 2:Input: nums1 = [4,9,5], nums2 = [9,4,9,8...
2019-09-29 23:24:00 84
转载 LC 394. Decode String
问题描述Given an encoded string, return its decoded string.The encoding rule is:k[encoded_string], where theencoded_stringinside the square brackets is being repeated exactlyktimes. Note tha...
2019-09-26 00:00:00 135
转载 LC 94. Binary Tree Inorder Traversal
问题描述Given a binary tree, return theinordertraversal of its nodes' values. (左 - 根 - 右)Example:Input: [1,null,2,3] 1 \ 2 / 3Output: [1,3,2]Follow up:Recursive...
2019-09-25 10:19:00 72
转载 LC 494. Target Sum
问题描述You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols+and-. For each integer, you should choose one from+and-as its new symbol.Fin...
2019-09-23 12:43:00 138
转载 LC 416. Partition Equal Subset Sum
题目Given anon-emptyarray containingonly positive integers, find if the array can be partitioned into two subsets such that the sum of elements in both subsets is equal.Note:Each of the ...
2019-09-22 17:41:00 84
转载 LC 20 Valid Parentheses
问题Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.An input string is valid if:Open brackets must be closed by the sam...
2019-09-18 00:51:00 70
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人