Skip to content

Instantly share code, notes, and snippets.

View mudspringhiker's full-sized avatar
🏛️

Alona (Umali) Varshal mudspringhiker

🏛️
View GitHub Profile
# Solution for merge_sorted_array.txt
# https://github.com/mudspringhiker/intQuestions/blob/master/merge_sorted_array.md
class Solution:
def merge(self, nums1, m, nums2, n):
"""
:type nums1: List[int]
:type m: int
:type nums2: List[int]
:type n: int
Given a list of integers, find the highest product
you can get from three of the integers.
The input lists_of_ints will always have a least three
integers.
Examples:
highest_pdt_of_3([-3, -1, 0, 1, 1, 1]):
@mudspringhiker
mudspringhiker / isUnique
Created October 29, 2018 18:53
Practice Coding 1
# Implememt an algorithm to determine if a string has all unique characters. What if you cannot use additional data structures?
def isUnique(str):
if len(str) > 128:
retun False
char_set = []
for char in str:
if char in char_set:
return False
char_set.append(char)
@mudspringhiker
mudspringhiker / tic-tac-toe-game.py
Last active May 30, 2018 15:52
Tic-tac-toe Game
"""
Tic-tac-toe game using NumPy
"""
import numpy as np
import random
import matplotlib.pyplot as plt
@mudspringhiker
mudspringhiker / grocery_list.py
Last active July 25, 2017 01:50
Grocery List Exercise (PyLadies Austin 07-24-17)
# Write a program that creates a unique grocery list.
# There must be a function to add an item to the list
# There must be a function to get the list.
# This means you can look at the list at anytime
# and add an item at any time.
# If you want to add a challenge, also have the ability to
# specify the amount you need to purchase of each item
@mudspringhiker
mudspringhiker / musicians.py
Last active July 22, 2017 14:49
Musicians and Band Objects
class Musician(object):
def __init__(self, sounds):
self.sounds = sounds
def solo(self, length):
for i in range(length):
print(self.sounds[i % len(self.sounds)], end=" ")
print()
@mudspringhiker
mudspringhiker / fizzbuzz.py
Created July 20, 2017 19:59
First Thinkful project: Fizzbuzz
import sys
def main():
header()
try:
limit = int(sys.argv[1])
except:
limit = int(input("Up to what number do you want to count to? "))
for i in range(1, limit+1):
@mudspringhiker
mudspringhiker / ReadMe.md
Last active March 23, 2017 21:42
Organization Country of Nobel Laureates 1901-2017

Nobel Laureates from Different Countries

Dataset obtained from Kaggle

Summary

This data visualization maps the organization countries of Nobel Laureates from 1901 to present. A Nobel Laureate is a person or organization that gets honored for achievements in the Nobel category they are awarded.

Design

@mudspringhiker
mudspringhiker / openstreetmap_project.md
Last active November 9, 2016 05:11
Summary of OpenStreetmap project for Udacity