- 🎯 I'm coding for a better world.
- 💡 I'm an open source fancier.
sssvip / algorithms4th Goto Github PK
View Code? Open in Web Editor NEWFollow the "algorithms 4th" to read and code. 一步一步跟着《算法》第四版学习和编码,提高传统数据结构和算法的思维和实现能力。
Follow the "algorithms 4th" to read and code. 一步一步跟着《算法》第四版学习和编码,提高传统数据结构和算法的思维和实现能力。
MiniArrayList miniArrayList = new MiniArrayList();
int dataSize = 5;
for (int i = 0; i < dataSize; i++) {
miniArrayList.add("test" + i);
}
ArrayList arrayList = new ArrayList();
for (int i = 0; i < dataSize; i++) {
arrayList.add("test" + i);
}
System.out.println(Arrays.toString(miniArrayList.toArray()));//[test0, test1, test2, test3, test4, null, null, null, null, null]
System.out.println(Arrays.toString(arrayList.toArray()));//[test0, test1, test2, test3, test4]
MiniArrayList addAll(int index,Collection c) index must be less than size-1
MiniArrayList retainAll methon can't corrent retain data
MiniArrayList lastIndexOf method will throw NullPointerException
size() method in MiniArrayList will throw stackoverflow error.(incorrect recursion)
MiniArrayList remove method should change index after removed data
System.out.println(MiniArrayList's instance) will output the memory address not similar to ArrayList just output the data.
e.g.
MiniArrayList miniArrayList = new MiniArrayList();
System.out.println(miniArrayList); //fundamentals.list.MiniArrayList@1376c05c
ArrayList arrayList = new ArrayList();
System.out.println(arrayList);//[] (data)
QuickSort class can't sort correctly
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.