Skip to content

Instantly share code, notes, and snippets.

View neotrinity's full-sized avatar

Gokulnath Haribabu neotrinity

View GitHub Profile
import array
import sys
MIL = 10**6
def running_sum(a):
tot = 0
for item in a:
i = int(item)
if i < 0 or i > MIL:
@neotrinity
neotrinity / gold_mines.cpp
Last active January 3, 2016 09:09
Gold Mines - Hacker Earth - I have defensively coded the constraints
#include <stdio.h>
#include <time.h>
using namespace std;
int main()
{
// declarations & initialisations
//time_t start = time(NULL);
//int sec;
@neotrinity
neotrinity / .vimrc
Last active December 31, 2015 22:39
My vimrc for python
syntax on
set nocompatible
set clipboard=unnamed " yank and paste with the system clipboard
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!