Skip to content

Instantly share code, notes, and snippets.

View ermiry's full-sized avatar
🏠
Working from home

Erick Salas ermiry

🏠
Working from home
View GitHub Profile
@ermiry
ermiry / main.c
Created November 17, 2019 02:15
AVL Tree Example
#include <stdlib.h>
#include <stdio.h>
#include "avl.h"
void avl_print (AVLNode *node) {
if (node) {
avl_print (node->right);
@ermiry
ermiry / avl.h
Created November 17, 2019 02:04
AVL Tree Header
#ifndef _COLLECTIONS_AVL_H_
#define _COLLECTIONS_AVL_H_
#include <stdbool.h>
typedef struct AVLNode {
void *id;
char balance;
struct AVLNode* left, *right;
@ermiry
ermiry / user.c
Last active November 17, 2019 01:04
User Structure Example
#include <stdlib.h>
#include <string.h>
typedef struct User {
char *name;
int id;
} User;