Skip to content

Instantly share code, notes, and snippets.

@amatla
amatla / dna.py
Last active April 8, 2021 19:50
CS50 Problem Set 6 - DNA Solution
import sys
import csv
def main():
# verify user input
if len(sys.argv) != 3:
print("Usage: python dna.py data.csv sequence.txt")
sys.exit(1)
@amatla
amatla / dictionary.c
Created March 26, 2021 15:57
CS50 PSET5 SPELLER (my attempt at an optimized hash table version)
// Implements a dictionary's functionality
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include "dictionary.h"
@amatla
amatla / dictionary.c
Created March 26, 2021 15:48
CS50 PSET5 SPELLER 2021
// Implements a dictionary's functionality
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <cs50.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include "dictionary.h"