Skip to content

Instantly share code, notes, and snippets.

@wudang-monk
wudang-monk / hanoi.c
Created June 25, 2019 02:35
Tower of Hanoi using stacks
#include <stdint.h>
typedef int32_t s32;
typedef uint32_t u32;
typedef struct {
s32 top;
u32 id;
u32 count;
u32 size;
@wudang-monk
wudang-monk / remove_element.c
Last active June 25, 2019 02:24
deleting element from list
#include <stdio.h>
#include <stdlib.h>
typedef struct elem {
char *name;
int number;
struct elem *next;
}Elem;
void print_list(Elem* elem)