archeryue / algo-cpp Goto Github PK
View Code? Open in Web Editor NEWalgorithms in cpp
algorithms in cpp
deque进行popback和popfront的的时候没考虑到如果存储的类型中含有指针指向的堆内存,这时不仅仅需要减少size,应该还要调用它的析构函数防止内存泄露。但是如果简单的进行析构的话,可能会导致deque析构的时候发生重复析构,因为delete[]会调用申请的这个数组的每个析构函数,应该用这时应该使用::operator delete取代delete将释放内存的过程和析构函数解藕。这样一来,想想突然发现单单申请内存时候与不需要调用到构造函数同样也可以解藕优化,cpp万恶之源😂
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.