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

2016年11月16日

leetcode 147. Insertion Sort List ----- java
摘要: Sort a linked list using insertion sort. 插入排序。 /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNo 阅读全文
posted @ 2016-11-16 16:43 xiaoba1203 阅读(146) 评论(0) 推荐(0)
 
leetcode 146. LRU Cache ----- java
摘要: esign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the 阅读全文
posted @ 2016-11-16 16:05 xiaoba1203 阅读(522) 评论(0) 推荐(0)
 
leetcode 145. Binary Tree Postorder Traversal ----- java
摘要: Given a binary tree, return the postorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [3,2,1]. Note: Recursive sol 阅读全文
posted @ 2016-11-16 11:29 xiaoba1203 阅读(206) 评论(0) 推荐(0)
 
leetcode 144. Binary Tree Preorder Traversal ----- java
摘要: Given a binary tree, return the preorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, return [1,2,3]. Note: Recursive solu 阅读全文
posted @ 2016-11-16 11:02 xiaoba1203 阅读(275) 评论(0) 推荐(0)
 
leetcode 143. Reorder List ----- java
摘要: Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For 阅读全文
posted @ 2016-11-16 10:35 xiaoba1203 阅读(289) 评论(0) 推荐(0)
 
 

公告


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