摘要: Programming Assignment2 Deque and Randomized Queues Review "Assignment Specification" 课程笔记 Subtext: Modular Programming Stacks and Queues are fundamen 阅读全文
posted @ 2018-05-12 11:32 AugusKong 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 前言:可能是一年或者两年之前就听说过了GitHub的大名,udacity的课程也上了一些,但是自己确实没有真正用心的来学习git,现在面临找工作的压力,下定决心一定要将自己的项目都统一整理到github上去,慢慢积累和打磨。 今天主要整体回顾了建立GitHub仓库的流程和基本的命令 建立仓库 cre 阅读全文
posted @ 2018-01-28 12:57 AugusKong 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Merge Two Sorted List Des: merge two sorted list into one sorted list (splicing the node of the first two lists) 我的思路: 每一个循环都复制一个新的new list node, 不破坏原 阅读全文
posted @ 2017-11-08 04:56 AugusKong 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Nov. 5th Number of islands Des: 2D matrix Solution: 1. iterate through all the elements of the 2D matrix 2.if v == 1 bfs through the one hop neighbors 阅读全文
posted @ 2017-11-06 06:46 AugusKong 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Subtree with Maximum Average 类名后面不需要加 变量,在类中的构造器中加上变量名。 调用方法,不需要加上变量类型 不能return 两个变量值 return 一个对象包括两个field return变量的类型不一致 整型变量size 不能加 “1.0” 阅读全文
posted @ 2017-10-31 02:33 AugusKong 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Oct 14th Tree 结构是否会比其它结构更难建立? no!! 创建的时间都是一样的,每个元素都添加一遍 一定是O(n) 的时间复杂度 Before the Start Basic Knowledge: mycodeschool "video" __Height of the tree__: 阅读全文
posted @ 2017-10-15 12:06 AugusKong 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Lint: Search a 2D Matrix: typo start_end should be start_column while loop 中忘记update the state of counter typo : matrix mid typo: return true + return 阅读全文
posted @ 2017-10-03 11:27 AugusKong 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Lesson1 The World of Objects __variable type__: primitive variables : int object variables :Pokemon _object variables are made up of those primitive t 阅读全文
posted @ 2017-09-30 09:11 AugusKong 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 九章算法 Chapter7 两个指针 __Remove Duplicate Numbers in Array__ 思路:删除 相向双指针 __Window Sum__: given an array _nums_ and a value _k_ and a window, the window's 阅读全文
posted @ 2017-09-29 09:56 AugusKong 阅读(369) 评论(0) 推荐(0) 编辑
摘要: Sample code one pump gas station events: arrival + departure arrival departure simulation time: unprocesed events are stored in pending list simulatio 阅读全文
posted @ 2017-09-29 07:56 AugusKong 阅读(218) 评论(0) 推荐(0) 编辑