Python for *Us* Hackers :)

Python is a cool language for hackers. However, instead of treating it like C for hacking at the low level like overflows and stuff, its much more …

Freeing Linked Lists in C Problem

Problem Code (chain.c): #include <stdlib.h> typedef struct node { int id; struct node *next; } node; // …

Hash Tables

The main purpose in life of a hash table: finding things fast. Like a dictionary, you use a key to access its value, instead of searching through the …

Linked Lists in C Are SO Annoying

Linked lists are known to be notoriously annoying. I have been stuck on them for a few days now. But, today I finally got it. So, a linked list is …

What Is malloc and free?

Normal variables use stack memory. The compiler automatically manages the stack, but there are two major contraints: Fixed sizes at compile time: …

What Is Assembly?

Well, assembly can be said to be the simplest programming language you are ever going to find in the world. It is so basic, so basic, that people …

What Is Redirection?

This writeup explains what redirection in Linux is. The thing is, you have seen many programs simply output stuff. But under the hood, a lot of things …

Algorithms - Intro

What is an algorithm? Well in simple words, I would say an algorithm is something which takes an input and gives an output. An example of the …