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
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
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
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
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
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
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
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
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
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