摘要: Problem : 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 @ 2020-02-10 10:44 littledy 阅读(104) 评论(0) 推荐(0)
摘要: Problem : Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, gi 阅读全文
posted @ 2020-02-09 22:22 littledy 阅读(92) 评论(0) 推荐(0)
摘要: Problem : Given two words word1 and word2 , find the minimum number of operations required to convert word1 to word2 . You have the following 3 operat 阅读全文
posted @ 2020-02-09 22:07 littledy 阅读(86) 评论(0) 推荐(0)
摘要: Problem : Given a set of candidate numbers ( ) ( without duplicates ) and a target number ( ), find all unique combinations in where the candidate num 阅读全文
posted @ 2020-02-09 11:54 littledy 阅读(80) 评论(0) 推荐(0)
摘要: Problem : Given an input string ( ) and a pattern ( ), implement wildcard pattern matching with support for ' ' and ' '. Note: could be empty and cont 阅读全文
posted @ 2020-02-09 10:51 littledy 阅读(121) 评论(0) 推荐(0)
摘要: Problem : A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a 阅读全文
posted @ 2020-02-09 10:44 littledy 阅读(123) 评论(0) 推荐(0)
摘要: Problem : A message containing letters from is being encoded to numbers using the following mapping: Given a non empty string containing only digits, 阅读全文
posted @ 2020-02-08 22:19 littledy 阅读(125) 评论(0) 推荐(0)
摘要: Problem : Given a linked list, return the node where the cycle begins. If there is no cycle, return . To represent a cycle in the given linked list, w 阅读全文
posted @ 2020-02-07 20:55 littledy 阅读(91) 评论(0) 推荐(0)
摘要: 异或性质 [1]: 交换律:A ^ B = B ^ A; 结合律:A ^ (B ^ C) = (A ^ B) ^ C; 恒等律:X ^ 0 = X; 归零律:X ^ X = 0; 自反:A ^ B ^ B = A ^ 0 = A; 对于任意的 X: X ^ ( 1) = ~X; 如果 A ^ B = 阅读全文
posted @ 2020-02-07 09:23 littledy 阅读(603) 评论(0) 推荐(0)
摘要: Problem : Given a m x n grid filled with non negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along 阅读全文
posted @ 2020-02-06 19:23 littledy 阅读(82) 评论(0) 推荐(0)