上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 77 下一页
摘要: [抄题]: Given an array which consists of non-negative integers and an integer m, you can split the array into m non-empty continuous subarrays. Write an 阅读全文
posted @ 2018-05-27 22:31 苗妙苗 阅读(339) 评论(0) 推荐(0)
摘要: [抄题]: There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you. You receive a list of non-empt 阅读全文
posted @ 2018-05-26 09:53 苗妙苗 阅读(904) 评论(0) 推荐(0)
摘要: [抄题]: Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) 阅读全文
posted @ 2018-05-25 17:19 苗妙苗 阅读(222) 评论(0) 推荐(0)
摘要: [抄题]: Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'. The matching should cover the ent 阅读全文
posted @ 2018-05-24 10:08 苗妙苗 阅读(201) 评论(0) 推荐(0)
摘要: [抄题]: Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string ma 阅读全文
posted @ 2018-05-22 22:02 苗妙苗 阅读(422) 评论(0) 推荐(0)
摘要: [抄题]: Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffe 阅读全文
posted @ 2018-05-21 15:50 苗妙苗 阅读(188) 评论(0) 推荐(0)
摘要: [抄题]: Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Example 2: Exa 阅读全文
posted @ 2018-05-20 21:39 苗妙苗 阅读(126) 评论(0) 推荐(0)
摘要: [抄题]: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example: [暴力解法]: 时间分析: 空间分 阅读全文
posted @ 2018-05-20 11:03 苗妙苗 阅读(343) 评论(0) 推荐(0)
摘要: [抄题]: Given a grid where each entry is only 0 or 1, find the number of corner rectangles. A corner rectangle is 4 distinct 1s on the grid that form an 阅读全文
posted @ 2018-05-19 22:05 苗妙苗 阅读(150) 评论(0) 推荐(0)
摘要: [抄题]: We have two integer sequences A and B of the same non-zero length. We are allowed to swap elements A[i] and B[i]. Note that both elements are in 阅读全文
posted @ 2018-05-18 11:30 苗妙苗 阅读(342) 评论(0) 推荐(0)
上一页 1 ··· 44 45 46 47 48 49 50 51 52 ··· 77 下一页