Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am jargnar on github.
* I am suhas (https://keybase.io/suhas) on keybase.
* I have a public key whose fingerprint is 2D74 46F7 A8D9 351C 5ADE 8318 2568 336C 3487 B687
To claim this, I am signing this object:
@jargnar
jargnar / .vimrc
Created July 17, 2014 06:58
My .vimrc file
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" " alternatively, pass a path where Vundle should install plugins
" "call vundle#begin('~/some/path/here')
"
" " let Vundle manage Vundle, required
@jargnar
jargnar / LargeFactorial.cpp
Created August 5, 2012 14:49
Factorials of large numbers using C++ Strings
// Suhas SG
// http://suhas.co
// INPUT:
// T - test cases followed by T lines of a number n.
// OUTPUT:
// Factorial of each n, in that order.
#include <iostream>
#include <string>
#define OVERFLOW 2
@jargnar
jargnar / HugeNumberMultiplication.cpp
Created August 5, 2012 11:06
Ridiculously Large Number Multiplication (with C++ Strings)
#include <iostream>
#include <string>
#define OVERFLOW 2
#define ROW b_len
#define COL a_len+b_len+OVERFLOW
using namespace std;
int getCarry(int num) {
int carry = 0;
@jargnar
jargnar / InfixToPostfix.cpp
Created August 3, 2012 00:49
Infix To Postfix C++
//suhas sg
//[email protected]
//http://www.spoj.pl/problems/ONP/
#include <iostream>
#include <string>
using namespace std;
bool isChar(char a) {
a = int(a);