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

2016年10月11日

leetcode 67 Add Binary ----- java
摘要: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 两个二进制数相加,并不难。 阅读全文
posted @ 2016-10-11 18:34 xiaoba1203 阅读(136) 评论(0) 推荐(0)
 
leetcode 66 Plus One ----- java
摘要: Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a 阅读全文
posted @ 2016-10-11 15:41 xiaoba1203 阅读(139) 评论(0) 推荐(0)
 
leetcode 65 Valid Number ----- java
摘要: Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true Note: It is intended for the 阅读全文
posted @ 2016-10-11 15:11 xiaoba1203 阅读(159) 评论(0) 推荐(0)
 
leetcode 64 Minimum Path Sum ----- java
摘要: Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. 阅读全文
posted @ 2016-10-11 12:36 xiaoba1203 阅读(158) 评论(0) 推荐(0)
 
leetcode 63 Unique Paths II ---java
摘要: Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space 阅读全文
posted @ 2016-10-11 12:08 xiaoba1203 阅读(152) 评论(0) 推荐(0)
 
 

2016年10月10日

leetcode 62 Unique Paths ---java
摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2016-10-10 23:44 xiaoba1203 阅读(171) 评论(0) 推荐(0)
 
 

2016年10月8日

leetcode 61 Rotate List ----- java
摘要: Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3- 阅读全文
posted @ 2016-10-08 22:49 xiaoba1203 阅读(168) 评论(0) 推荐(0)
 
 

2016年8月31日

leetcode 60 Permutation Sequence ----- java
摘要: The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order,We get the following sequence 阅读全文
posted @ 2016-08-31 00:11 xiaoba1203 阅读(384) 评论(0) 推荐(0)
 
 

2016年8月26日

leetcode 59 Spiral Matrix II ------ java
摘要: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3, You should return the followi 阅读全文
posted @ 2016-08-26 14:05 xiaoba1203 阅读(164) 评论(0) 推荐(0)
 
Linux 下开源RXTX库的配置与使用
摘要: 由于项目需要再Linux下读取串口并进行相关操作。 一般串口操作(Linux)都是用C语言编写的,因为更加底层,也更安全,更易编写,但是由于项目是java的,所以就要使用java的相关库来实现。 我在这里使用的是RXTXcomm.jar。 http://rxtx.qbang.org/wiki/ind 阅读全文
posted @ 2016-08-26 00:06 xiaoba1203 阅读(4354) 评论(0) 推荐(0)
 
 
上一页 1 ··· 12 13 14 15 16 17 18 19 下一页

公告


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