Skip to content

Instantly share code, notes, and snippets.

View isaiah-perumalla's full-sized avatar

isaiah isaiah-perumalla

View GitHub Profile
@isaiah-perumalla
isaiah-perumalla / functions.py
Last active November 26, 2019 16:20
some python functions
def calc_avg(items):
if not items:
return 0
total = sum(items)
return float(total)/len(items)
def std_deviation(items):
if not items: return 0
mean = calc_avg(items)
package practice;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Queue;
import practice.BinarySearchTree.Node;
public class BSTPrint {
package com.company;
import java.util.ArrayList;
import java.util.Arrays;
public class Main {
public static final int INF = Integer.MAX_VALUE;
public static void main(String[] args) {

Keybase proof

I hereby claim:

  • I am isaiah-perumalla on github.
  • I am isaiah_p (https://keybase.io/isaiah_p) on keybase.
  • I have a public key ASB2WZfQUWqLR4Aci20nORmizByne74eM-xm_t-EX9diowo

To claim this, I am signing this object:

--------------------------- MODULE concurrent_map ---------------------------
EXTENDS TLC, Integers, FiniteSets, Sequences
ReaderCount == 2
Readers == 1..ReaderCount