• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
neverlandly
博客园    首页    新随笔    联系   管理    订阅  订阅
2016年2月1日
Lintcode: Interval Minimum Number
摘要: Given an integer array (index from 0 to n-1, where n is the size of this array), and an query list. Each query has two integers [start, end]. For each 阅读全文
posted @ 2016-02-01 12:30 neverlandly 阅读(701) 评论(0) 推荐(0)
Lintcode: Segment Tree Query II
摘要: For an array, we can build a SegmentTree for it, each node stores an extra attribute count to denote the number of elements in the the array which val 阅读全文
posted @ 2016-02-01 11:46 neverlandly 阅读(599) 评论(0) 推荐(0)
Lintcode: Segment Tree Modify
摘要: For a Maximum Segment Tree, which each node has an extra value max to store the maximum value in this node's interval. Implement a modify function wit 阅读全文
posted @ 2016-02-01 08:05 neverlandly 阅读(313) 评论(0) 推荐(0)
Lintcode: Segment Tree Query
摘要: For an integer array (index from 0 to n-1, where n is the size of this array), in the corresponding SegmentTree, each node stores an extra attribute m 阅读全文
posted @ 2016-02-01 07:52 neverlandly 阅读(814) 评论(0) 推荐(0)
Leetcode: Verify Preorder Serialization of a Binary Tree
摘要: One way to serialize a binary tree is to use pre-oder traversal. When we encounter a non-null node, we record the node's value. If it is a null node, 阅读全文
posted @ 2016-02-01 07:31 neverlandly 阅读(1174) 评论(0) 推荐(0)
Lintcode: Segment Tree Build
摘要: The structure of Segment Tree is a binary tree which each node has two attributes start and end denote an segment / interval. start and end are both i 阅读全文
posted @ 2016-02-01 06:41 neverlandly 阅读(304) 评论(0) 推荐(0)
Lintcode: Matrix Zigzag Traversal
摘要: Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in ZigZag-order. Have you met this question in a real intervie 阅读全文
posted @ 2016-02-01 05:24 neverlandly 阅读(656) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3