摘要:
[抄题]: 求挖掉一些区域后,能允许出现的最大十字架 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 阅读全文
摘要:
[抄题]: 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 阅读全文
摘要:
[抄题]: 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 阅读全文
摘要:
[抄题]: 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 阅读全文
摘要:
[抄题]: 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 阅读全文
摘要:
[抄题]: Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Example 2: [暴力解法]: 时间分析: 空间分析: [ 阅读全文
摘要:
[抄题]: 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 阅读全文
摘要:
[抄题]: Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Example 2: [暴力解法]: 时间分析: 空间分析: [优化后]: 时间分析: 空 阅读全文
摘要:
[抄题]: 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 阅读全文
摘要:
[抄题]: 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 阅读全文