摘要: Unique Paths Problem A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either d 阅读全文
posted @ 2019-03-15 10:58 Archer-Fang 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 斐波那契数列:0 1 1 2 3 5 8 13 21... 给出一个n,求数组。 代码如下: 阅读全文
posted @ 2019-03-15 10:42 Archer-Fang 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Jump Game The Problem Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array 阅读全文
posted @ 2019-03-14 13:51 Archer-Fang 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Depth-First Search (DFS) Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures. One starts at the root (s 阅读全文
posted @ 2019-03-14 12:40 Archer-Fang 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Depth-first search (DFS) is an algorithm for traversing or searching tree or graph data structures. One starts at the root (selecting some arbitrary n 阅读全文
posted @ 2019-03-14 11:32 Archer-Fang 阅读(136) 评论(0) 推荐(0) 编辑
摘要: A recursive merge sort algorithm used to sort an array of 7 integer values. These are the steps a human would take to emulate merge sort (top-down). C 阅读全文
posted @ 2019-03-14 10:53 Archer-Fang 阅读(306) 评论(0) 推荐(0) 编辑
摘要: The rows of Pascal's triangle are conventionally enumerated starting with row n = 0 at the top (the 0th row). The entries in each row are numbered fro 阅读全文
posted @ 2019-03-11 13:59 Archer-Fang 阅读(646) 评论(0) 推荐(0) 编辑
摘要: The Tower of Hanoi (also called the Tower of Brahma or Lucas' Tower and sometimes pluralized) is a mathematical game or puzzle. It consists of three r 阅读全文
posted @ 2019-03-11 13:11 Archer-Fang 阅读(259) 评论(0) 推荐(0) 编辑
摘要: TCP是一种全双工的可靠传输协议,核心思想:保证数据可靠传输以及数据的传输效率 A B 二次握手: 1.A发送同步信号SYN+A's initial sequence number 2.B发送同步信号SYN+B's initial sequence number +B's ACK sequence 阅读全文
posted @ 2019-02-01 14:48 Archer-Fang 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 二叉搜索树(BST)有时也被叫做有序二叉树或者排序二叉树是一种特别的容器类型:是一种储存数据到内存中的数据结构。二叉树允许快速查找,添加和删除元素,而且不仅可以被用于实现动态数据集,而且在查找数据表的时候可以允许通过key来查找一个元素。二叉查找树会保持节点的key是排好序的,因此做查找或者其他操作 阅读全文
posted @ 2019-01-12 20:50 Archer-Fang 阅读(126) 评论(0) 推荐(0) 编辑