码迷,mamicode.com
首页 >  
搜索关键字:median of two sorted    ( 17004个结果
Build Post Office II
Description Given a 2D grid, each cell is either a wall 2, an house 1 or empty 0 (the number zero, one, two), find a place to build a post office so t ...
分类:其他好文   时间:2019-12-22 00:45:14    阅读次数:75
Scramble String
Description Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible ...
分类:其他好文   时间:2019-12-21 22:56:17    阅读次数:82
Distinct Subsequences
Description Description Given two strings S and T. Count the number of distinct subsequences of S which equals T. A subsequence of a string is a new s ...
分类:其他好文   时间:2019-12-21 22:46:20    阅读次数:101
Edit Distance
Description Description Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is count ...
分类:其他好文   时间:2019-12-21 22:27:54    阅读次数:111
Longest Common Subsequence
Description Description Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Clarification What's ...
分类:其他好文   时间:2019-12-21 22:27:26    阅读次数:80
Longest Repeating Subsequence
Description Description Given a string, find length of the longest repeating subsequence such that the two subsequence don’t have same string characte ...
分类:其他好文   时间:2019-12-21 22:26:52    阅读次数:71
Coins in a Line III
Description Description There are n coins in a line, and value of i-th coin is values[i]. Two players take turns to take a coin from one of the ends o ...
分类:其他好文   时间:2019-12-21 22:24:15    阅读次数:77
Coins in a Line
Description Description There are n coins in a line. Two players take turns to take one or two coins from right side until there are no more coins lef ...
分类:其他好文   时间:2019-12-21 22:16:37    阅读次数:104
Divide Two Integers
Description Description Divide two integers without using multiplication, division and mod operator. If it will overflow(exceeding 32-bit signed integ ...
分类:其他好文   时间:2019-12-21 20:28:53    阅读次数:82
LeetCode 1150. Check If a Number Is Majority Element in a Sorted Array
原题链接在这里:https://leetcode.com/problems/check-if-a-number-is-majority-element-in-a-sorted-array/ 题目: Given an array nums sorted in non-decreasing order, ...
分类:其他好文   时间:2019-12-21 12:11:48    阅读次数:73
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!