程序媛詹妮弗
终身学习
上一页 1 2 3 4 5 6 7 ··· 30 下一页
摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 题意 给定一个没加点的IP地址,返回所有可能的合法IP地址。 思路: 阅读全文
posted @ 2019-06-01 03:18 程序媛詹妮弗 阅读(170) 评论(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: 题意 给定一个01矩阵,找出其中全由1构成的最 阅读全文
posted @ 2019-05-31 16:02 程序媛詹妮弗 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Example 1: Example 2: 阅读全文
posted @ 2019-05-31 15:32 程序媛詹妮弗 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted f 阅读全文
posted @ 2019-05-31 07:46 程序媛詹妮弗 阅读(193) 评论(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: Example 2: 题意 给定一个矩阵,只要某个元素为0,就把对应的整行整列都置0。 思 阅读全文
posted @ 2019-05-31 06:36 程序媛詹妮弗 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Given an absolute path for a file (Unix-style), simplify it. Or in other words, convert it to the canonical path. In a UNIX-style file system, a perio 阅读全文
posted @ 2019-05-31 03:13 程序媛詹妮弗 阅读(232) 评论(0) 推荐(0) 编辑
摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2019-05-31 02:45 程序媛詹妮弗 阅读(427) 评论(0) 推荐(0) 编辑
摘要: The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following seque 阅读全文
posted @ 2019-05-31 02:31 程序媛詹妮弗 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Unary Operations(一元操作): 单表操作 选择(Selection) ==>相当于SQL语句中的WHERE 语法: 举例: 表示从Students这个表中选出course = 'CM'的信息,结果为: 等价于下面的SQL语句: 投影(Projection) ==>相当于SQL语句中的 阅读全文
posted @ 2019-05-31 00:34 程序媛詹妮弗 阅读(6999) 评论(0) 推荐(0) 编辑
摘要: 怎样验证好的relations? 最小化冗余,使得其在每个属性(column)中只出现一次,除非这些属性全部或部分担任的是foreign keys的角色。 为何这不是个好design? 冗余! 冗余会导致异常: 1. 插入异常:由于没有某些属性信息,而该属性又不能为 null,导致无法插入。 比如新 阅读全文
posted @ 2019-05-30 02:55 程序媛詹妮弗 阅读(1683) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 30 下一页