Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert a binary tree on a…

package treetravernonrecur; import java.util.*; class node { node left; node right; int data; int visited; public node(int val,int visit) {…

package treeprobs; class node1 { node1 left; node1 right; int data; public node1(int val) { data=val; } } public class…

package checkduplicate; import java.util.*; public class CheckdupliHash { public static void main(String args[]) { ArrayList<Integer> al=new ArrayList<Integer>(); al=addNumbers(al); System.out.println(“Duplicacy”+checkdup(al)); }…

//Code to check the duplicacy of numbers in a array using negation technique //Constraint is numbers allowed in array of…

Write an efficient program to find the sum of contiguous subarray within a one-dimensional array of numbers which has the…

Problem: You are in an infinite 2D grid where you can move in any of the 8 directions : (x,y)…

Problem: Given a positive integer which fits in a 32 bit signed integer, find if it can be expressed as…

Problem: Given an even number ( greater than 2 ), return two prime numbers whose sum will be equal to…