摘要:
[抄题]: Given an input string , reverse the string word by word. Example: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: [思维问题]: [英文数 阅读全文
posted @ 2018-07-30 22:58
苗妙苗
阅读(195)
评论(0)
推荐(0)
摘要:
[抄题]: Given a string s, find the longest palindromic subsequence's length in s. You may assume that the maximum length of s is 1000. Example 1:Input: 阅读全文
posted @ 2018-07-30 18:18
苗妙苗
阅读(256)
评论(0)
推荐(0)
摘要:
[抄题]: Given a string, sort it in decreasing order based on the frequency of characters. Example 1: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇 阅读全文
posted @ 2018-07-30 16:00
苗妙苗
阅读(202)
评论(0)
推荐(0)
摘要:
[抄题]: Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. E 阅读全文
posted @ 2018-07-30 15:03
苗妙苗
阅读(188)
评论(0)
推荐(0)
摘要:
[抄题]: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Example 1: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: 阅读全文
posted @ 2018-07-30 11:12
苗妙苗
阅读(223)
评论(0)
推荐(0)
摘要:
[抄题]: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the tot 阅读全文
posted @ 2018-07-30 10:36
苗妙苗
阅读(124)
评论(0)
推荐(0)