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

2016年11月29日

✡ leetcode 165. Compare Version Numbers 比较两个字符串数字的大小 --------- java
摘要: Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0. You may assum 阅读全文
posted @ 2016-11-29 16:58 xiaoba1203 阅读(10053) 评论(0) 推荐(0)
 
✡ leetcode 164. Maximum Gap 寻找最大相邻数字差 --------- java
摘要: Given an unsorted array, find the maximum difference between the successive elements in its sorted form. Try to solve it in linear time/space. Return 阅读全文
posted @ 2016-11-29 16:11 xiaoba1203 阅读(310) 评论(0) 推荐(0)
 
✡ leetcode 163. Missing Ranges 找出缺失范围 --------- java
摘要: Given a sorted integer array where the range of elements are in the inclusive range [lower, upper], return its missing ranges. For example, given [0, 阅读全文
posted @ 2016-11-29 14:30 xiaoba1203 阅读(261) 评论(0) 推荐(0)
 
 

2016年11月28日

✡ leetcode 161. One Edit Distance 判断两个字符串是否是一步变换 --------- java
摘要: Given two strings S and T, determine if they are both one edit distance apart. 给定两个字符串,判断他们是否是一步变换得到的。 在这里需要注意几点: 1、不等于1的变换都要返回false(包括变换次数等于0)。 2、还有很 阅读全文
posted @ 2016-11-28 23:06 xiaoba1203 阅读(629) 评论(0) 推荐(0)
 
✡ leetcode 159. Longest Substring with At Most Two Distinct Characters 求两个字母组成的最大子串长度 --------- java
摘要: Given a string, find the length of the longest substring T that contains at most 2 distinct characters. For example, Given s = “eceba”, T is "ece" whi 阅读全文
posted @ 2016-11-28 17:14 xiaoba1203 阅读(381) 评论(0) 推荐(0)
 
✡ leetcode 158. Read N Characters Given Read4 II - Call multiple times 对一个文件多次调用read(157题的延伸题) --------- java
摘要: The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it retu 阅读全文
posted @ 2016-11-28 15:11 xiaoba1203 阅读(340) 评论(0) 推荐(0)
 
✡ leetcode 157. Read N Characters Given Read4 利用read4实现read --------- java
摘要: The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it retu 阅读全文
posted @ 2016-11-28 14:20 xiaoba1203 阅读(508) 评论(0) 推荐(0)
 
✡ leetcode 156. Binary Tree Upside Down 旋转树 --------- java
摘要: 156. Binary Tree Upside Down Add to List QuestionEditorial Solution My Submissions 156. Binary Tree Upside Down Add to List QuestionEditorial Solution 阅读全文
posted @ 2016-11-28 12:56 xiaoba1203 阅读(283) 评论(0) 推荐(0)
 
 

2016年11月27日

最小二乘法 java
摘要: java中调用commons.math3使用最小二乘法。 在这里记录一下使用方法。 阅读全文
posted @ 2016-11-27 17:50 xiaoba1203 阅读(1867) 评论(0) 推荐(0)
 
 

2016年11月23日

Tips
摘要: 1.StringBuffer 与 StringBuilder a.执行速度:StringBuilder > StringBuffer => 单线程操作大量数据 : StringBuilder b.StringBuilder:线程非安全的 StringBuffer :线程安全 => 多线程操作大量数据 阅读全文
posted @ 2016-11-23 15:23 xiaoba1203 阅读(155) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页

公告


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