Coder Social home page Coder Social logo

0xwaleed / data-structures Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 372 KB

[IN PROGRESS ⏳] Data structure implementations based on [array] in different languages for educational purposes!

License: The Unlicense

CMake 3.02% C 8.07% C++ 43.79% Python 12.52% PHP 19.95% HTML 1.43% JavaScript 11.22%

data-structures's Introduction

Top Langs Anurag's github stats

data-structures's People

Contributors

0xwaleed avatar

Watchers

 avatar

data-structures's Issues

C Implementation

Queue

Structure

Queue queue_s

  • Size size_t size
  • Values void** values

API

  • Create queue_s* queue_create(size_t capacity)
  • Enqueue bool queue_enqueue(queue_s* queue, void* value)
  • Dequeue void* queue_dequeue(queue_s* queue)
  • Peek void* queue_peek(queue_s* queue)

Python Implementation

Queue

Queue

Properties:

  • size: int
  • capacity: int

Methods:

  • __init__(capacity: int)
  • enqueue(item: object): bool
  • dequeue(): object
  • peek(): object

C++ Implementation

Queue [C++]

Queue<T>

API

  • Queue(size_t capacity)
  • enqueue(T item)
  • T dequeue()
  • T peek()
  • size_t size()

PHP Implementation

Queue [PHP]

Class

API:

  • Constructor __constructor(int $capacity)
  • Enqueue enqueue(mixed $item)
  • Dequeue dequeue(): mixed
  • Peek peek(): mixed
  • Size size(): int

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.