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

2016年11月15日

leetcode 142. Linked List Cycle II ----- java
摘要: Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the linked list. Follow up:Can you 阅读全文
posted @ 2016-11-15 17:55 xiaoba1203 阅读(248) 评论(0) 推荐(0)
 
leetcode 141. Linked List Cycle ----- java
摘要: Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 判断是否成环 1、利用set,很简单,但是题目中说不要用额外的空间。 2、设置两 阅读全文
posted @ 2016-11-15 16:32 xiaoba1203 阅读(154) 评论(0) 推荐(0)
 
leetcode 140. Word Break II ----- java
摘要: Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such p 阅读全文
posted @ 2016-11-15 16:06 xiaoba1203 阅读(330) 评论(0) 推荐(0)
 
leetcode 139. Word Break ----- java
摘要: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For 阅读全文
posted @ 2016-11-15 14:59 xiaoba1203 阅读(211) 评论(0) 推荐(0)
 
leetcode 138. Copy List with Random Pointer ----- java
摘要: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy 阅读全文
posted @ 2016-11-15 12:00 xiaoba1203 阅读(192) 评论(0) 推荐(0)
 
leetcode 137. Single Number II ----- java
摘要: Given an array of integers, every element appears three times except for one. Find that single one. Note:Your algorithm should have a linear runtime c 阅读全文
posted @ 2016-11-15 10:11 xiaoba1203 阅读(142) 评论(0) 推荐(0)
 
 

公告


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