摘要:
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 阅读全文
摘要:
Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? 阅读全文
摘要:
一、定义: 二、二叉查找树的基本操作 2.1查找操作 2.2 插入操作 2.3 建立二叉查找树 2.4 删除某个节点 把以二叉查找树中比结点权值小的最大结点称为该结点的前驱,把比结点权值大的最小结点称为该结点的后继; 阅读全文
摘要:
转自csdn的文章,仅作为学习笔记。原文链接:https://blog.csdn.net/weixin_36888577/article/details/79937886 普通的队列是一种先进先出的数据结构,元素在队列尾追加,而从队列头删除。 在优先队列中,元素被赋予优先级。当访问元素时,具有最高优 阅读全文
摘要:
注意:请安装 TeX All The Things 这款Chrome浏览器插件才能正确显示公式。 链接如下:https://chrome.google.com/webstore/detail/tex-all-the-things/cbimabofgmfdkicghcadidpemeenbffn 3. 阅读全文
摘要:
注意:请安装 TeX All The Things 这款Chrome浏览器插件才能正确显示公式。 链接如下:https://chrome.google.com/webstore/detail/tex-all-the-things/cbimabofgmfdkicghcadidpemeenbffn 一、 阅读全文
摘要:
题目描述: 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 阅读全文
摘要:
reshape(行数,列数)常用来更改数据的行列数目 一般可用于numpy的array和ndarray, pandas的dataframe和series(series需要先用series.values把对象转化成ndarray结构) 那么问题来了reshape(-1,1)是什么意思呢?难道有-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 阅读全文
摘要:
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 阅读全文