GithubHelp home page GithubHelp logo

vaskka / datastructurelearning Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 648 KB

数据结构回炉重学,使用纯c实现一遍常用数据结构,复习考研用。

License: MIT License

C 93.83% CMake 4.57% Shell 1.60%

datastructurelearning's Introduction

DataStructureLearning

数据结构回炉重学,使用纯c实现一遍常用数据结构,复习考研用。

已完成的数据结构

详细接口文档参见doc/%struct_name%.md

src/common/struct_common.h 中定义的是常用的一些工具,例如错误处理等。

ArrayList

使用 void* 类型实现类泛型的、自动增长的list结构。使用时removeIndexElement(ArrayList* list, int index)和removeElement(ArrayList* list, void* ele)如果传递的是已经分配内存的指针,则需要注意内存泄漏的问题。实现上无法检查存储的void*类型的数据是否分配过内存,因此不做free处理。

LinkedList

同样使用void* 实现类泛型的双向链表,可代替队列和栈的功能。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.