Skip to content

Instantly share code, notes, and snippets.

View chaudharisuresh997's full-sized avatar
🤓

Suresh Chaudhari chaudharisuresh997

🤓
View GitHub Profile
//weird recursion gen permutation paranthesis
package com.internet;
import java.util.ArrayList;
import java.util.List;
public class PintAllPermutationOfParanthesis {
public static void printAllParanthesis(List<String> finalOp, int open, int close, int n){
if(close==n){
//for(String ls:finalOp) {
@chaudharisuresh997
chaudharisuresh997 / BinaryTreeData.java
Last active December 26, 2019 07:01
BinaryTree create tree data
reate Binary search tree
TreeNode t8=new TreeNode(8);
TreeNode t3=new TreeNode(3);
TreeNode t1=new TreeNode(1);
TreeNode t6=new TreeNode(6);
TreeNode t10=new TreeNode(10);
TreeNode t9=new TreeNode(9);
TreeNode t14=new TreeNode(14);
package main
import (
"fmt"
u "model"
)
func MapDemo() {