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

2018年5月14日

CellType 及 CELL_TYPE_BLANK
摘要: 1、CellType如下类型: 2、在读取Cell内容时,遇到当CellType == CELL_BLANK_TYPE时 a、按照cell.getNumericCellValue()读取,会读取到0.0。 b、按照cell.getStringCellValue()读取,会读取到empty的Strin 阅读全文
posted @ 2018-05-14 16:25 xiaoba1203 阅读(10364) 评论(0) 推荐(0)
 
 

2017年7月28日

leetcode Add to List 229. Majority Element II ---------- java
摘要: Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space. Gi 阅读全文
posted @ 2017-07-28 16:41 xiaoba1203 阅读(234) 评论(0) 推荐(0)
 
leetcode 228. Summary Ranges ---------- java
摘要: Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"]. 很简单的一 阅读全文
posted @ 2017-07-28 15:54 xiaoba1203 阅读(271) 评论(0) 推荐(0)
 
 

2017年7月13日

leetcode 227. Basic Calculator II ---------- java
摘要: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators a 阅读全文
posted @ 2017-07-13 18:29 xiaoba1203 阅读(277) 评论(0) 推荐(0)
 
leetcode 225. Implement Stack using Queues 利用队列构建栈 ---------- java
摘要: Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. to 阅读全文
posted @ 2017-07-13 14:03 xiaoba1203 阅读(158) 评论(0) 推荐(0)
 
 

2017年7月7日

leetcode 224. Basic Calculator ---------- java
摘要: Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or 阅读全文
posted @ 2017-07-07 16:18 xiaoba1203 阅读(254) 评论(0) 推荐(0)
 
 

2017年5月24日

leetcode 223. Rectangle Area 计算面积---------- java
摘要: Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner as s 阅读全文
posted @ 2017-05-24 17:50 xiaoba1203 阅读(337) 评论(0) 推荐(0)
 
leetcode 222. Count Complete Tree Nodes 统计节点个数---------- java
摘要: Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia:In a complete binary tree every level, ex 阅读全文
posted @ 2017-05-24 17:22 xiaoba1203 阅读(280) 评论(0) 推荐(0)
 
 

2017年4月25日

leetcode 链表题总结
摘要: 按照frequency来排序,总共27题 1、2. Add Two Numbers https://leetcode.com/problems/add-two-numbers/#/description 两个链表相加,注意就是进位问题。 2、237. Delete Node in a Linked 阅读全文
posted @ 2017-04-25 17:36 xiaoba1203 阅读(594) 评论(0) 推荐(0)
 
 

2017年4月24日

leetcode 221. Maximal Square 求一个数组中由1组成的最大的正方形面积 ---------- java
摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area. For example, given the following ma 阅读全文
posted @ 2017-04-24 11:26 xiaoba1203 阅读(729) 评论(0) 推荐(0)
 
 
下一页

公告


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