• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
neverlandly
博客园    首页    新随笔    联系   管理    订阅  订阅
2014年5月6日
Leetcode: Palindrome Numbers
摘要: Determine whether an integer is a palindrome. Do this without extra space.尝试用两头分别比较的方法,结果发现无法解决1000021这种问题 1 public class Solution { 2 public bool... 阅读全文
posted @ 2014-05-06 04:06 neverlandly 阅读(323) 评论(0) 推荐(0)
Leetcode: Reverse Integer
摘要: Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321一次通过,它的spoiler里面的提示有两个:1. 末尾为0的情况,这个考虑到了2.Did you notice that... 阅读全文
posted @ 2014-05-06 01:06 neverlandly 阅读(508) 评论(0) 推荐(0)
Leetcode: Two Sum
摘要: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2014-05-06 00:20 neverlandly 阅读(407) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3