• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
日常任务
天天挖坑
博客园 首页 新随笔 联系 订阅 订阅 管理

2016年11月20日

366. Find Leaves of Binary Tree
摘要: Given a binary tree, collect a tree's nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. Example:Given bi 阅读全文
posted @ 2016-11-20 01:42 fripSide 阅读(285) 评论(0) 推荐(0)
 
369. Plus One Linked List
摘要: Given a non-negative number represented as a singly linked list of digits, plus one to the number. The digits are stored such that the most significan 阅读全文
posted @ 2016-11-20 01:20 fripSide 阅读(296) 评论(0) 推荐(0)
 
370. Range Addition
摘要: Assume you have an array of length n initialized with all 0's and are given k update operations. Each operation is represented as a triplet: [startInd 阅读全文
posted @ 2016-11-20 01:06 fripSide 阅读(259) 评论(0) 推荐(0)
 
411. Minimum Unique Word Abbreviation
摘要: A string such as "word" contains the following abbreviations: Given a target string and a set of strings in a dictionary, find an abbreviation of this 阅读全文
posted @ 2016-11-20 01:05 fripSide 阅读(347) 评论(0) 推荐(0)
 
 

2016年11月19日

379. Design Phone Directory
摘要: 379. Design Phone Directory Design a Phone Directory which supports the following operations: Example: 阅读全文
posted @ 2016-11-19 23:10 fripSide 阅读(259) 评论(0) 推荐(0)
 
 

2016年6月2日

Permutation
摘要: (M) Permutations (M) Permutations II (M) Permutation Sequence (M) Palindrome Permutation II (M) Permutations (M) Permutations II (M) Permutation Seque 阅读全文
posted @ 2016-06-02 01:22 fripSide 阅读(252) 评论(0) 推荐(0)
 
 

2016年5月15日

leetcode216-Combination Sum III
摘要: https://leetcode.com/problems/combination-sum-iii/ 用dfs枚举。 其他同类题: http://www.jiuzhang.com/solutions/search/?question=Combination+Sum 1. http://www.lin 阅读全文
posted @ 2016-05-15 17:08 fripSide 阅读(218) 评论(0) 推荐(0)
 
 

2016年5月6日

百度star编程赛-练习1
摘要: ztr loves math http://acm.hdu.edu.cn/showproblem.php?pid=5675 显然:4 ^ n * (a + b) * (a -b) 阅读全文
posted @ 2016-05-06 00:47 fripSide 阅读(195) 评论(0) 推荐(0)
 
 

2016年4月19日

腾讯暑期实习生面试题
摘要: 1. 反转链表 2. 实现HashMap的Put,Get操作 3. two sum 4. 给一个random函数能等概率生成0~4的5个随机数,利用这个函数来实现等概率随机生成0~6的7个数的随机数。 阅读全文
posted @ 2016-04-19 14:11 fripSide 阅读(330) 评论(0) 推荐(0)
 
 

2016年4月9日

素数筛选
摘要: http://hihocoder.com/contest/hiho93/problem/1?sid=764530 提示:Eular质数筛法 提示:Eular质数筛法 小Hi:我们可以知道,任意一个正整数k,若k≥2,则k可以表示成若干个质数相乘的形式。Eratosthenes筛法中,在枚举k的每一个 阅读全文
posted @ 2016-04-09 22:54 fripSide 阅读(280) 评论(0) 推荐(0)
 
 
下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3