Comments (2)
add方法感觉也是错的
from algorithmsbypython.
如果使用self.data = newdata 那么就Node就变成了一个单独的节点,就不是链表了。
写成self.next = newdata也是错误的
这就是一个Node节点的实现,称作是linked list是错误的
from algorithmsbypython.
Related Issues (13)
- 剑指offer+面试题3+第31行+是不是有问题
- 数组中只出现一次的数字.py 16行少了个0
- 剑指里面试题6:从尾到头打印链表, HOT 1
- 旋转数组三个值一样的情况,应该直接return吧?
- 旋转数组的最小值,下面算法和lz的一样? HOT 2
- targetofferbyPython 稀疏矩阵转置、丑数优化 HOT 1
- 请教一下冒泡排序中,for passnum in range(len(alist)-1, 0, -1)为什么要这样写range(len(alist)-1,0,-1) HOT 1
- 请教一下二位数组查找 HOT 1
- avl node.balanceFactor has no define
- 【剑指offer面试题12】拓展
- 面试题22:栈的压入、弹出序列是不是代码有bug啊?楼主看一下我的修改的有没有问题
- 元素下沉 ,如果当前元素小于子元素中最小的,应该直接break吧 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from algorithmsbypython.