2014年12月9日

【原创】leetCodeOj --- Jump Game II 解题报告

摘要: 原题地址:https://oj.leetcode.com/problems/jump-game-ii/题目内容:Given an array of non-negative integers, you are initially positioned at the first index of th... 阅读全文

posted @ 2014-12-09 17:30 shadowmydx'sLab 阅读(114) 评论(0) 推荐(0) 编辑

【原创】leetCodeOj --- Sort List 解题报告

摘要: 今日leetcode链表题全制霸原题地址:https://oj.leetcode.com/problems/sort-list/题目内容:Sort ListSort a linked list inO(nlogn) time using constant space complexity.方法:题目... 阅读全文

posted @ 2014-12-09 16:46 shadowmydx'sLab 阅读(133) 评论(0) 推荐(0) 编辑

【SICP读书笔记(二)】使用过程来黏合数据 —— 酷炫吊的消息传递机制

摘要: 首先,让我们来看几个内建函数(cons x y),作用是把x和y绑定成一个序对(car z),作用是提取z序对的第一个元素(cdr z),作用是提取z序对的第二个元素容易看出,这个东西有点类似OO语言里的类,car和cdr是get方法,x和y是成员变量。但是,但是!函数式的编程方式,居然可以利用过程... 阅读全文

posted @ 2014-12-09 11:29 shadowmydx'sLab 阅读(218) 评论(0) 推荐(0) 编辑

导航