Hicham-BelHoucin / ft_containers

ft_containers Is 42 Project It Is All About Implementing Containers Of Cpp Vector Stack Map And Set And Some Tools That Those Containers use like : Equal Enable_if .

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ft_containers

ft_containers Is 42 Project It Is All About Implementing Containers Of Cpp Vector Stack Map And Set And Some Tools That Those Containers use like : Equal Enable_if ...

first container with us is vector :

What Is a Vector ?

To implement vector you will need an array to store its's elements

second container with us is stack :

What Is a stack ?

To implement stack you will use it's underlaying container to store stack elements and all of stack member function based on it's underlaying container . So if if you call for example size() function in stack it will call size() function in it's underlaying container

third container with us is map :

What Is a map ?

to implement map you use something called binary search tree What Is a Binary Search Tree ? when you use bst you face timing problem your map will be to slow so to fix this probleme you need to use An Avl Tree What Is a Avl Tree ?

exmaple of Avl Tree Rotations :

example of rotations

fourth container with us is set :

to implement set you will use something called Red Black tree What Is a Red Black Tree ?

example of Red Black Tree :

example

About

ft_containers Is 42 Project It Is All About Implementing Containers Of Cpp Vector Stack Map And Set And Some Tools That Those Containers use like : Equal Enable_if .


Languages

Language:C++ 96.8%Language:Makefile 2.4%Language:JavaScript 0.8%