码迷,mamicode.com
首页 >  
搜索关键字:lc    ( 989个结果
[LC] 451. Sort Characters By Frequency
Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" Output: "eert" Explanation: 'e' appears twi ...
分类:其他好文   时间:2020-02-16 01:05:54    阅读次数:61
0214 像魔术师的口袋,什么招数都有
1.复习代码 .复习代码 LC 322 322. Coin Change Medium 2970100Add to ListShare You are given coins of different denominations and a total amount of money amount. ...
分类:其他好文   时间:2020-02-14 10:53:04    阅读次数:94
[LC] 373. Find K Pairs with Smallest Sums
You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element from th ...
分类:其他好文   时间:2020-02-13 13:22:48    阅读次数:67
[LC] 297. Serialize and Deserialize Binary Tree
You may serialize the following tree: 1 / \ 2 3 / \ 4 5 as "[1,2,3,null,null,4,5]" /** * Definition for a binary tree node. * public class TreeNode { ...
分类:其他好文   时间:2020-02-13 09:14:46    阅读次数:69
[LC] 299. Bulls and Cows
Example 1: Input: secret = "1807", guess = "7810" Output: "1A3B" Explanation: 1 bull and 3 cows. The bull is 8, the cows are 0, 1 and 7. Example 2: In ...
分类:其他好文   时间:2020-02-12 22:25:22    阅读次数:81
[LC] 1007. Minimum Domino Rotations For Equal Row
In a row of dominoes, A[i] and B[i] represent the top and bottom halves of the i-th domino. (A domino is a tile with two numbers from 1 to 6 - one on ...
分类:其他好文   时间:2020-02-11 11:48:25    阅读次数:101
[LC] 273. Integer to English Words
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Input: 123 Output: " ...
分类:其他好文   时间:2020-02-10 10:16:33    阅读次数:75
[LC] 146. LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the ...
分类:系统相关   时间:2020-02-10 09:57:46    阅读次数:68
LC 1349. Maximum Students Taking Exam
Link Solution 0: class Solution { public: int m,n; int maxStudents(vector<vector<char>>& seats) { m=seats.size(); n=seats[0].size(); vector<vector<int ...
分类:其他好文   时间:2020-02-09 16:34:09    阅读次数:64
LC 127. Word Ladder (two end bfs)
Link class Solution { public: int ladderLength(string beginWord, string endWord, vector<string>& wordList) { unordered_set<string> words; for(auto &s: ...
分类:其他好文   时间:2020-02-09 11:19:33    阅读次数:67
989条   上一页 1 ... 11 12 13 14 15 ... 99 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!