Giter Club home page Giter Club logo

adt's Introduction

General Adaptive Array

An adaptive array is an array that changes its size so that any reference to a negative index is valid.

When you refer to an index where no value has been placed then NULL is returned

ADT functions definition:

  • CreateAdptArray() Creates and allocates memory for the structure array
  • DeleteAdptArray() Frees the memory allocated by the array, including the element array and any elements that were copied into it
  • SetAdptArrayAt() Saves a copy of the given element in the given index of the array and frees the old element if exist
  • GetAdptArrayAt() Returns a copy of the element in the given index of an array
  • GetAdptArraySize() Returns the size of the given array
  • PrintDB() Prints to the console all the elements from the given array

Running the program:

# Clone the repository
# Open the rerminal
$ Run "make demo"
$ Run "make run"
# For memory leaks
$ Run "make mem_test"

adt's People

Contributors

mightyarty avatar

Watchers

 avatar  avatar

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.