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

2017年3月24日

leetcode 200. Number of Islands 求岛的数量 ---------- java
摘要: Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacen 阅读全文
posted @ 2017-03-24 15:33 xiaoba1203 阅读(452) 评论(0) 推荐(0)
 
leetcode 199. Binary Tree Right Side View 求所能看到的叶子节点 ---------- java
摘要: Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For exa 阅读全文
posted @ 2017-03-24 12:51 xiaoba1203 阅读(130) 评论(0) 推荐(0)
 
leetcode 198. House Robber 求抢劫的最大金额 ---------- java
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2017-03-24 12:39 xiaoba1203 阅读(268) 评论(0) 推荐(0)
 
leetcode 191. Number of 1 Bits 求二进制1的个数 ---------- java
摘要: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit 阅读全文
posted @ 2017-03-24 11:20 xiaoba1203 阅读(128) 评论(0) 推荐(0)
 
leetcode 190. Reverse Bits (int)数字旋转 ---------- java
摘要: Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), retur 阅读全文
posted @ 2017-03-24 11:11 xiaoba1203 阅读(203) 评论(0) 推荐(0)
 
 

2017年3月23日

leetcode 189. Rotate Array 数组旋转 ---------- java
摘要: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. 就是把 阅读全文
posted @ 2017-03-23 23:02 xiaoba1203 阅读(293) 评论(0) 推荐(0)
 
 

2017年3月4日

Google test Problem A. Country Leader
摘要: 题目比较简单,就是好好熟悉一下答题系统,练练手 阅读全文
posted @ 2017-03-04 18:19 xiaoba1203 阅读(219) 评论(0) 推荐(0)
 
 

2016年12月21日

leetcode 187. Repeated DNA Sequences 求重复的DNA串 ---------- java
摘要: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to 阅读全文
posted @ 2016-12-21 21:15 xiaoba1203 阅读(195) 评论(0) 推荐(0)
 
mysql忘记密码(未初始化)
摘要: Mac OS X - 重置 MySQL Root 密码您是否忘记了Mac OS 的MySQL的root密码? 通过以下4步就可重新设置新密码:1. 停止 mysql server. 通常是在 '系统偏好设置' > MySQL > 'Stop MySQL Server'2. 打开终端,输入: sudo 阅读全文
posted @ 2016-12-21 10:00 xiaoba1203 阅读(159) 评论(0) 推荐(0)
 
 

2016年12月11日

leetcode 186. Reverse Words in a String II 旋转字符数组 ---------- java
摘要: Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters. The input string does not contain lea 阅读全文
posted @ 2016-12-11 17:10 xiaoba1203 阅读(382) 评论(0) 推荐(0)
 
 
上一页 1 2 3 4 5 6 7 8 ··· 19 下一页

公告


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