Comments (1)
I am happy that people like you in China can still access my book, I heard that a lot of stuff is blocked by your leaders. And I hope the English language is not a too big problem for people in China.
For your question, inserting at both ends or the middle of a linked list is generally not that easy and fast. Typically, we store the head of the list, and so can easily replace that element by a new one. For this data structure, we would have to traverse the list to the end, to find the last element, before we can add the new one at that position. Similar for inserting somewhere in the middle. To enable adding new elements at the beginning and at the end, we may also store an additional pointer to the end, but that makes things more complicated.
For general list structures and its operations, you should be able to find a lotof information in the Internet or the local library. It is not that different for Nin than to C or other languages, but when you are using refs in Nim, you don't have to care for freeing nodes of course.
from nimprogrammingbook.
Related Issues (17)
- Typo HOT 1
- License? HOT 13
- maybe an effecient way to broadcast message in the chat server application HOT 4
- executable examples HOT 5
- Permission to translate the book HOT 3
- Some thoughts about async HOT 3
- Broken URL HOT 2
- Wrong word HOT 5
- [FR] Dark theme option HOT 4
- Debug code left in regex example HOT 2
- Needs introduction to analysis of algorithms HOT 1
- Minor update to the book for nims 2.0 release as of today (01.08.2023) HOT 8
- Re: Permission to use the book in YouTube video series. HOT 3
- Result of some code is not expected as point in the book HOT 5
- Use of word "concept" in place of "defer" HOT 3
- Expand section on templates 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 nimprogrammingbook.