摘要: On the first row, we write a 0. Now in every subsequent row, we look at the previous row and replace each occurrence of 0 with 01, and each occurrence 阅读全文
posted @ 2019-09-09 21:31 WhoDreamsSky 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? 阅读全文
posted @ 2019-09-07 20:13 WhoDreamsSky 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 一、定义: 二、二叉查找树的基本操作 2.1查找操作 2.2 插入操作 2.3 建立二叉查找树 2.4 删除某个节点 把以二叉查找树中比结点权值小的最大结点称为该结点的前驱,把比结点权值大的最小结点称为该结点的后继; 阅读全文
posted @ 2019-08-12 17:20 WhoDreamsSky 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 转自csdn的文章,仅作为学习笔记。原文链接:https://blog.csdn.net/weixin_36888577/article/details/79937886 普通的队列是一种先进先出的数据结构,元素在队列尾追加,而从队列头删除。 在优先队列中,元素被赋予优先级。当访问元素时,具有最高优 阅读全文
posted @ 2019-08-05 09:28 WhoDreamsSky 阅读(1908) 评论(0) 推荐(0) 编辑
摘要: 注意:请安装 TeX All The Things 这款Chrome浏览器插件才能正确显示公式。 链接如下:https://chrome.google.com/webstore/detail/tex-all-the-things/cbimabofgmfdkicghcadidpemeenbffn 3. 阅读全文
posted @ 2019-07-25 18:59 WhoDreamsSky 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 注意:请安装 TeX All The Things 这款Chrome浏览器插件才能正确显示公式。 链接如下:https://chrome.google.com/webstore/detail/tex-all-the-things/cbimabofgmfdkicghcadidpemeenbffn 一、 阅读全文
posted @ 2019-07-25 13:35 WhoDreamsSky 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 题目描述: You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes 阅读全文
posted @ 2019-07-08 21:28 WhoDreamsSky 阅读(86) 评论(0) 推荐(0) 编辑
摘要: reshape(行数,列数)常用来更改数据的行列数目 一般可用于numpy的array和ndarray, pandas的dataframe和series(series需要先用series.values把对象转化成ndarray结构) 那么问题来了reshape(-1,1)是什么意思呢?难道有-1行? 阅读全文
posted @ 2019-05-25 23:45 WhoDreamsSky 阅读(10190) 评论(0) 推荐(1) 编辑
摘要: Syntax B = A.' B = transpose(A) Syntax B = A.' B = transpose(A) B = A.' B = transpose(A) B = A.' B = transpose(A) Description B = A.' returns the nonc 阅读全文
posted @ 2019-03-30 14:54 WhoDreamsSky 阅读(5717) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist 阅读全文
posted @ 2019-02-28 19:50 WhoDreamsSky 阅读(115) 评论(0) 推荐(0) 编辑