Skip to content

Instantly share code, notes, and snippets.

View savinay's full-sized avatar

Savinay Narendra savinay

  • San Jose, California
View GitHub Profile
@savinay
savinay / knn1.py
Created September 26, 2017 14:00 — forked from richard-to/knn1.py
kNN implementations with Pandas based on examples from ML in Action by Peter Harrington
import math
import numpy as np
def createDataSet():
"""
Creates a basic data set labels.
The labels are the classification given to the points. The data
is hardcoded in this toy example.
@savinay
savinay / The Technical Interview Cheat Sheet.md
Created June 15, 2016 07:23 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.