Skip to content

Instantly share code, notes, and snippets.

View anantbahuguna's full-sized avatar
😎
Learning and contributing

Anant Bahuguna anantbahuguna

😎
Learning and contributing
View GitHub Profile
import React,{Component } from "react";
import "./styles.css";
export default class App extends Component {
state = {
count: 0
}
handleClick = () => {
this.setState({
count: this.state.count+1
#include <bits/stdc++.h>
using namespace std;
vector<pair<int,int> > vpairs;
int main()
{
//write your code here
int n,m;
cin>>n>>m;
@anantbahuguna
anantbahuguna / README-Template.md
Created April 30, 2020 06:08 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@anantbahuguna
anantbahuguna / infix_to_postfix.cpp
Created January 3, 2020 20:49
Infix to Postfix C++ Program
#include<bits/stdc++.h>
using namespace std;
//Assuming each operand and operator is of 1 character instead of multiple characters
bool IsOpeningParenthesis(char optr)
{
if(optr == '(' || optr == '{' || optr == '[')
return true;
else