Skip to content

Instantly share code, notes, and snippets.

View rohanbharadwaj's full-sized avatar
💭
Always Learning

Rohan Bharadwaj rohanbharadwaj

💭
Always Learning
View GitHub Profile
#!/usr/bin/python
import sys
def main():
print "Hello World"
if __name__=='__main__':
main()
/*
C++ Program to check for balanced parentheses in an expression using stack.
Given an expression as string comprising of opening and closing characters
of parentheses - (), curly braces - {} and square brackets - [], we need to
check whether symbols are balanced or not.
*/
#include<iostream>
#include<stack>
#include<string>
using namespace std;
/* Merge sort in C */
#include<stdio.h>
#include<stdlib.h>
// Function to Merge Arrays L and R into A.
// lefCount = number of elements in L
// rightCount = number of elements in R.
void Merge(int *A,int *L,int leftCount,int *R,int rightCount) {
int i,j,k;