Git Product home page Git Product logo

algoritmos-utils's Introduction

README

Cosas útiles para análisis de algoritmos

Funciones y macros de C para hacer las practicas de algoritmos mas rápido, puedes encontrar ejemplos de uso dentro del los directorios test de cada sección.

Importante

  1. Si un nombre esta en mayúsculas y con ‘_’ es un macro.
  2. Si un nombre esta minúsculas y con camelCase es una función.

gstructs.h

Listas

ListInit
Inicializar lista
ListGetNode
Obtiene el nodo en una posición
ListInsert
Inserta un elemento a la lista
ListRemove
Elimina un elemento en la lista
ListFree
Libera la memoria de la lista
LIST_EMPTY
Verifica sí la lista esta vacía
LIST_LEN
obtener la longitud de la lista
LIST_PUSH
Inserta un elemento al final
LIST_POP
Extrae el ultimo elemento de la lista

Colas

QUEUE_INIT
Inicializa la lista
QUEUE_ENQUEUE
Agrega un elemento a la cola
QUEUE_DEQUEUE
Elimina el primer elemento
QUEUE_SIZE
Tamaño de la cola
QUEUE_FRONT
Primer elemento de la lista
QUEUE_REAR
Ultimo elemento de la lista
QUEUE_FREE
Liberar la memoria de la cola

Pilas

STACK_INIT
Inicializa la pila
STACK_PUSH
Agrega un elemento a la pila
STACK_POP
Extrae un elemento de la pila
STACK_TOP
Revisa el primer elemento de la pila
STACK_EMPTY
Verifica si la pila esta vacía
STACK_SIZE
Retorna el tamaño de la pila
STACK_FREE
Libera la memoria de la pila

gcapture.h

flushStdinBuffer
Vacía el buffer de stdin
isAlphabetic
Verifica si un carácter es un numero o una letra
strUpper
Convierte un string a mayúscula
strLower
Convierte un string en minúscula
strGet
Captura un string
charGet
Captura un char

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.