上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 77 下一页
摘要: [抄题]: 求挖掉一些区域后,能允许出现的最大十字架 In a 2D grid from (0, 0) to (N-1, N-1), every cell contains a 1, except those cells in the given list mines which are 0. Wh 阅读全文
posted @ 2018-05-18 09:09 苗妙苗 阅读(180) 评论(0) 推荐(0)
摘要: [抄题]: Given an undirected graph, return true if and only if it is bipartite. Recall that a graph is bipartite if we can split it's set of nodes into t 阅读全文
posted @ 2018-05-17 11:22 苗妙苗 阅读(154) 评论(0) 推荐(0)
摘要: [抄题]: Some people will make friend requests. The list of their ages is given and ages[i] is the age of the ith person. Person A will NOT friend reques 阅读全文
posted @ 2018-05-17 10:38 苗妙苗 阅读(308) 评论(0) 推荐(0)
摘要: [抄题]: Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 阅读全文
posted @ 2018-05-16 23:42 苗妙苗 阅读(111) 评论(0) 推荐(0)
摘要: [抄题]: There is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different wid 阅读全文
posted @ 2018-05-16 16:59 苗妙苗 阅读(149) 评论(0) 推荐(0)
摘要: [抄题]: Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Example 2: [暴力解法]: 时间分析: 空间分析: [ 阅读全文
posted @ 2018-05-16 15:41 苗妙苗 阅读(134) 评论(0) 推荐(0)
摘要: [抄题]: Given an array of integers with possible duplicates, randomly output the index of a given target number. You can assume that the given target nu 阅读全文
posted @ 2018-05-16 11:13 苗妙苗 阅读(318) 评论(0) 推荐(0)
摘要: [抄题]: Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Example 2: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空 阅读全文
posted @ 2018-05-15 22:22 苗妙苗 阅读(122) 评论(0) 推荐(0)
摘要: [抄题]: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to find the 阅读全文
posted @ 2018-05-15 11:41 苗妙苗 阅读(229) 评论(0) 推荐(0)
摘要: [抄题]: Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you coul 阅读全文
posted @ 2018-05-14 22:44 苗妙苗 阅读(272) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 77 下一页