• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
xiaoba1203
记录leetcode之路
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页

2016年12月8日

leetcode 179. Largest Number 求最大组合数 ---------- java
摘要: Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed n 阅读全文
posted @ 2016-12-08 12:15 xiaoba1203 阅读(418) 评论(0) 推荐(0)
 
✡ leetcode 174. Dungeon Game 地牢游戏 --------- java
摘要: The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 阅读全文
posted @ 2016-12-08 00:03 xiaoba1203 阅读(1101) 评论(0) 推荐(0)
 
 

2016年12月7日

✡ leetcode 173. Binary Search Tree Iterator 设计迭代器(搜索树)--------- java
摘要: Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the n 阅读全文
posted @ 2016-12-07 17:59 xiaoba1203 阅读(660) 评论(0) 推荐(0)
 
 

2016年11月30日

✡ leetcode 172. Factorial Trailing Zeroes 阶乘中的结尾0个数--------- java
摘要: Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 主要是思考清楚计算过程: 将一个数进行因式分解, 阅读全文
posted @ 2016-11-30 21:52 xiaoba1203 阅读(123) 评论(0) 推荐(0)
 
✡ leetcode 171. Excel Sheet Column Number 字母转换为数字 --------- java
摘要: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: 很简 阅读全文
posted @ 2016-11-30 17:28 xiaoba1203 阅读(209) 评论(0) 推荐(0)
 
✡ leetcode 170. Two Sum III - Data structure design 设计two sum模式 --------- java
摘要: Design and implement a TwoSum class. It should support the following operations: add and find. Design and implement a TwoSum class. It should support 阅读全文
posted @ 2016-11-30 17:15 xiaoba1203 阅读(180) 评论(0) 推荐(0)
 
✡ leetcode 169. Majority Element 求出现次数最多的数 --------- java
摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the 阅读全文
posted @ 2016-11-30 15:53 xiaoba1203 阅读(486) 评论(0) 推荐(0)
 
✡ leetcode 168. Excel Sheet Column Title 26进制数字 --------- java
摘要: Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 26进制的实现。 没什么难点。就是需要需要注意是 n = (n-1)/26 阅读全文
posted @ 2016-11-30 15:12 xiaoba1203 阅读(287) 评论(0) 推荐(0)
 
✡ leetcode 167. Two Sum II - Input array is sorted 求两数相加等于一个数的位置 --------- java
摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function 阅读全文
posted @ 2016-11-30 14:48 xiaoba1203 阅读(142) 评论(0) 推荐(0)
 
✡ leetcode 166. Fraction to Recurring Decimal 分数转换 --------- java
摘要: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating 阅读全文
posted @ 2016-11-30 14:35 xiaoba1203 阅读(166) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 8 9 ··· 19 下一页

公告


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