• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

nunca

但行好事 莫问前程
  • 博客园
  • 联系
  • 订阅
  • 管理

公告

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

2018年4月10日

LeetCode Medium: 8. String to Integer (atoi)

摘要: 一、题目 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see b 阅读全文

posted @ 2018-04-10 08:50 乐晓东随笔 阅读(148) 评论(0) 推荐(0)

2018年4月9日

LeetCode Medium: 6. ZigZag Conversion

摘要: 一、题目 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed 阅读全文

posted @ 2018-04-09 09:07 乐晓东随笔 阅读(121) 评论(0) 推荐(0)

2018年4月8日

LeetCode Medium:5. Longest Palindromic Substring

摘要: 一、题目 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: 参考博客: 阅读全文

posted @ 2018-04-08 08:04 乐晓东随笔 阅读(116) 评论(0) 推荐(0)

2018年4月3日

LeetCode Easy: 100. Same Tree

摘要: 一、题目 Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally 阅读全文

posted @ 2018-04-03 15:27 乐晓东随笔 阅读(149) 评论(0) 推荐(0)

LeetCode Easy: 88. Merge Sorted Array

摘要: 一、题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has enough space (siz 阅读全文

posted @ 2018-04-03 15:19 乐晓东随笔 阅读(138) 评论(0) 推荐(0)

2018年4月1日

LeetCode Easy:83. Remove Duplicates from Sorted List

摘要: 一、题目 Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->2-> 阅读全文

posted @ 2018-04-01 15:48 乐晓东随笔 阅读(120) 评论(0) 推荐(0)

2018年3月31日

LeetCode Easy: 70. Climbing Stairs

摘要: 一、题目 You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can y 阅读全文

posted @ 2018-03-31 21:42 乐晓东随笔 阅读(143) 评论(0) 推荐(0)

2018年3月30日

LeetCode Easy: 69. Sqrt(x)

摘要: 一、题目 Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative integer. 返回一个非负整数的平方根 二、题目解析 这个可以用二分查找来做 阅读全文

posted @ 2018-03-30 08:26 乐晓东随笔 阅读(147) 评论(0) 推荐(0)

2018年3月29日

LeetCode Easy: 67. Add Binary

摘要: 一、题目 Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 二进制加法 二、解题思路 第一种:先将二进制转换成十进制,做十进制加法,然 阅读全文

posted @ 2018-03-29 09:13 乐晓东随笔 阅读(166) 评论(0) 推荐(0)

2018年3月28日

LeetCode Easy: 66. Plus One

摘要: 一、题目 Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any l 阅读全文

posted @ 2018-03-28 08:43 乐晓东随笔 阅读(176) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3