Given a sorted array of integers, find the starting and ending position of a given target value. Your a…
分类:LeetCode题目解答
[LeetCode] Maximum Product of Word Lengths 单词长度的最大积
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) …
[LeetCode] Find Duplicate File in System 在系统中寻找重复文件
Given a list of directory info including directory path, and all the files with contents in this direct…
LeetCode | Combination Sum II
题目: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in …
[Leetcode] Single Number 单身数
Single Number I 最新思路解法请访问:https://yanjia.me/zh/2018/11/… Given an array of integers, every element appea…
[LeetCode] Target Sum 目标和
You are given a list of non-negative integers, a1, a2, …, an, and a target, S. Now you have 2 sym…
[Leetcode] Convert Sorted Array/List to Binary Search Tree 建BST
Convert Sorted List to Binary Search Tree Given a singly linked list where elements are sorted in ascending or…
5. Longest Palindromic Substring
5. Longest Palindromic Substring 题目 Given a string s, find the longest palindromic substring in s. You may ass…
[LeetCode] Kth Largest Element in an Array 数组中第k大的数字
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the …
[LeetCode] Intersection of Two Arrays 两个数组相交
Given two arrays, write a function to compute their intersection. Example:Given nums1 = …
[Leetcode] Reverse Linked List 反转链表
Reverse Linked List I Reverse a singly linked list. click to show more hints. Hint: A linked list can be rever…
[Leetcode] Valid Parentheses 验证有效括号对
Valid Parentheses Given a string containing just the characters ‘(‘, ‘)’, ‘{R…