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






BookShu

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  LeetCode

LeetCode中的题目,以及一些解决方法。
 
【LeetCode】476. Number Complement (java实现)
摘要:原题链接 "https://leetcode.com/problems/number complement/" 原题 Given a positive integer, output its complement number. The complement strategy is to flip 阅读全文
posted @ 2017-01-26 07:02 布克多得 阅读(445) 评论(0) 推荐(0)
【LeetCode】389 Find the Difference(java)
摘要:原题 Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter 阅读全文
posted @ 2016-09-29 23:48 布克多得 阅读(509) 评论(0) 推荐(0)
20 Valid Parentheses
摘要:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid bu... 阅读全文
posted @ 2015-07-18 23:32 布克多得 阅读(217) 评论(0) 推荐(0)
19 Remove Nth Node From End of List
摘要:Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After remo... 阅读全文
posted @ 2015-07-18 22:57 布克多得 阅读(175) 评论(0) 推荐(0)
205 Isomorphic Strings
摘要:Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences... 阅读全文
posted @ 2015-07-07 00:37 布克多得 阅读(209) 评论(0) 推荐(0)