• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
ArgenBarbie
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页
2016年3月30日
84. Largest Rectangle in Histogram *HARD* -- 柱状图求最大面积 85. Maximal Rectangle *HARD* -- 求01矩阵中的最大矩形
摘要: 1. Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the h 阅读全文
posted @ 2016-03-30 20:53 ArgenBarbie 阅读(279) 评论(0) 推荐(0)
2016年3月26日
78. Subsets 90. Subsets II
摘要: 1. Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set m 阅读全文
posted @ 2016-03-26 17:19 ArgenBarbie 阅读(245) 评论(0) 推荐(0)
2016年3月16日
76. Minimum Window Substring *HARD*
摘要: Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example,S = "ADOBECOD 阅读全文
posted @ 2016-03-16 19:23 ArgenBarbie 阅读(114) 评论(0) 推荐(0)
74. Search a 2D Matrix
摘要: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: For example, Consider the followi 阅读全文
posted @ 2016-03-16 17:16 ArgenBarbie 阅读(185) 评论(0) 推荐(0)
73. Set Matrix Zeroes
摘要: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Did you use extra space?A straight forward solution usin 阅读全文
posted @ 2016-03-16 17:11 ArgenBarbie 阅读(152) 评论(0) 推荐(0)
72. Edit Distance *HARD*
摘要: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have 阅读全文
posted @ 2016-03-16 16:40 ArgenBarbie 阅读(175) 评论(0) 推荐(0)
2016年3月15日
SPFA单源最短路径算法
摘要: 我们用数组d记录每个结点的最短路径估计值,而且用邻接表来存储图G。我们采取的方法是动态逼近法:设立一个先进先出的队列用来保存待优化的结点,优化时每次取出队首结点u,并且用u点当前的最短路径估计值对离开u点所指向的结点v进行松弛操作,如果v点的最短路径估计值有所调整,且v点不在当前的队列中,就将v点放 阅读全文
posted @ 2016-03-15 13:33 ArgenBarbie 阅读(276) 评论(0) 推荐(0)
索引
摘要: 索引分为聚簇索引和非聚簇索引两种,聚簇索引是按照数据存放的物理位置为顺序的,而非聚簇索引就不一样了。聚簇索引能提高多行检索的速度,而非聚簇索引对于单行的检索很快。 根据数据库的功能,可以在数据库设计器中创建三种索引:唯一索引、主键索引和聚集索引。 阅读全文
posted @ 2016-03-15 09:30 ArgenBarbie 阅读(165) 评论(0) 推荐(0)
隔离级别 && SNAPSHOT
摘要: read uncommitted | 0 未提交读 read uncommitted | 0 未提交读 将查询的隔离级别指定为 0。 可以读脏数据。 读脏数据:一事务对数据进行了增删改,但未提交,有可能回滚,另一事务却读取了未提交的数据。 例: 公司发工资了,领导把5000元打到singo的账号上, 阅读全文
posted @ 2016-03-15 08:56 ArgenBarbie 阅读(323) 评论(0) 推荐(0)
2016年3月14日
多态性&& 虚函数 && 抽象类
摘要: http://www.cnblogs.com/CaiNiaoZJ/archive/2011/08/11/2134673.html 多态性 http://www.cnblogs.com/CaiNiaoZJ/archive/2011/08/11/2134673.html 多态性 指相同对象收到不同消息或 阅读全文
posted @ 2016-03-14 19:23 ArgenBarbie 阅读(240) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3