上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 77 下一页
摘要: [抄题]: 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)
摘要: [抄题]: public MyHashMap() { 主函数里面是装非final变量的,如果没有,可以一个字都不写 } [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: put: 不论如何都要放。所以如果没有bucke 阅读全文
posted @ 2018-07-29 18:12 苗妙苗 阅读(551) 评论(0) 推荐(0)
摘要: 🔸《第周contest做出来了题》 🔸《第周contest做出来了题》 🔸《第周contest做出来了题》 🔸《第周contest做出来了题》 🔸《第周contest做出来了题》 🔸《第周contest做出来了题》 🔸《第周contest做出来了题》 🔸《第周contest做出来了题 阅读全文
posted @ 2018-07-29 15:57 苗妙苗 阅读(323) 评论(0) 推荐(0)
摘要: [抄题]: Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: [暴力解法] 阅读全文
posted @ 2018-07-29 11:47 苗妙苗 阅读(146) 评论(0) 推荐(0)
摘要: [抄题]: Example 2: Example 3: Example 4: Example 5: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空间分析: [奇葩输出条件]: [奇葩corner case]: [思维问题]: 根本不知道应该怎么处理越界啊: 先设置一个bound 阅读全文
posted @ 2018-07-28 21:47 苗妙苗 阅读(111) 评论(0) 推荐(0)
上一页 1 ··· 40 41 42 43 44 45 46 47 48 ··· 77 下一页