原创 【LeetCode】451. Sort Characters By Frequency【M】【68】

Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" Output:

原创 【LeetCode】495. Teemo Attacking【M】【41】

In LLP world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now,

原创 【LeetCode】476. Number Complement【E】【59】

Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary rep

原创 【LeetCode】448. Find All Numbers Disappeared in an Array【E】【77】

Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.

原创 【LeetCode】500. Keyboard Row【E】【75】

Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyb

原创 【LeetCode】442. Find All Duplicates in an Array【M】【60】

Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find

原创 【LeetCode】506. Relative Ranks【E】【50】

Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be aw