由于种种原因,简书等第三方平台博客不再保证能够同步更新,欢迎移步 GitHub:https://github.com/kingcos/Perspective/。谢谢!
Learning data structure by coding in C/C++/Obj-C/Java/Swift.
- Info
- Xcode 8.0
- Intellij IDEA 2016.2
前言
数据结构是一门相对抽象,枯燥的课。
这次算是我第五次学数据结构了吧,之前的几次都没跟上,希望这次至少多敲敲代码,熟悉熟悉。代码全部公开,欢迎指出错误。
注意
本来准备把代码段粘贴到博客中,但是由于文件较多,不好组织,更不便于阅读。因此我在 GitLab 上建立了一个 Group,将所有项目放置于此。
每种数据结构均使用了 5 种编程语言实现,目的是为了巩固基本的语法,也印证了数据结构与具体的编程语言无关。
由于不同语言的特性不同,C 和 Obj-C 均使用特定的整型数据类型(即 int
),而 C++ 使用模版来达到泛型的目的,Swift 和 Java 也原生支持泛型,使得数据结构与数据类型解耦。
Loop Queue
C
https://gitlab.com/data-structure-learning/Loop-Queue-in-C
C++
https://gitlab.com/data-structure-learning/Loop-Queue-in-Cpp
Objective-C
https://gitlab.com/data-structure-learning/Loop-Queue-in-ObjC
Swift
https://gitlab.com/data-structure-learning/Loop-Queue-in-Swift
Java
https://gitlab.com/data-structure-learning/Loop-Queue-in-Java
Stack
C
https://gitlab.com/data-structure-learning/Stack-in-C
C++
https://gitlab.com/data-structure-learning/Stack-in-Cpp
Objective-C
https://gitlab.com/data-structure-learning/Stack-in-ObjC
Swift
https://gitlab.com/data-structure-learning/Stack-in-Swift
Java
https://gitlab.com/data-structure-learning/Stack-in-Java
Sequence List
C
https://gitlab.com/data-structure-learning/Sequence-List-in-C
C++
https://gitlab.com/data-structure-learning/Sequence-List-in-Cpp
Objective-C
https://gitlab.com/data-structure-learning/Sequence-List-in-ObjC
Swift
https://gitlab.com/data-structure-learning/Sequence-List-in-Swift
Java
https://gitlab.com/data-structure-learning/Sequence-List-in-Java
Link List
C
https://gitlab.com/data-structure-learning/Link-List-in-C
C++
https://gitlab.com/data-structure-learning/Link-List-in-Cpp
Objective-C
https://gitlab.com/data-structure-learning/Link-List-in-ObjC
Swift
https://gitlab.com/data-structure-learning/Link-List-in-Swift
Java
https://gitlab.com/data-structure-learning/Link-List-in-Java