摘要:
Given N pairs of parentheses “()”, return a list with all the valid permutations. Assumptions N > 0 Examples N = 1, all valid permutations are ["()"] 阅读全文
posted @ 2020-02-16 11:00
xuan_abc
阅读(148)
评论(0)
推荐(0)
摘要:
Given a string, remove all leading/trailing/duplicated empty spaces. Assumptions: The given string is not null. Examples: “ a” --> “a” “ I love MTV ” 阅读全文
posted @ 2020-02-16 05:57
xuan_abc
阅读(113)
评论(0)
推荐(0)
摘要:
Given a matrix of size N x M. For each row the elements are sorted in ascending order, and for each column the elements are also sorted in ascending o 阅读全文
posted @ 2020-02-16 04:04
xuan_abc
阅读(109)
评论(0)
推荐(0)
摘要:
Given a string, sort it in decreasing order based on the frequency of characters. Example 1: Input: "tree" Output: "eert" Explanation: 'e' appears twi 阅读全文
posted @ 2020-02-16 00:33
xuan_abc
阅读(164)
评论(0)
推荐(0)

浙公网安备 33010602011771号