Find parent of each node in a tree for multiple queries
Given a tree with N vertices numbered from 0 to N – 1 and Q query containing nodes in the tree, the task is to… Read More »
Given a tree with N vertices numbered from 0 to N – 1 and Q query containing nodes in the tree, the task is to… Read More »
Expedia visited our campus in August for recruiting interns. The process began with an online round followed by 3 interview rounds. The online round consisted… Read More »
IVP visited our campus in September. They had a cutoff of 7. Round 1: Coding Round This round comprised of 2 coding questions, 25 Quantitative… Read More »
Given two strings A and B of length N, the task is to check whether the two strings can be made equal by swapping any… Read More »
The goal of this article is to containerize a Java application easily, by creating a Spring Boot App using Dockerfile. The steps will be as… Read More »
Pre-requisite: Java Tutorials This article is about the support of Java on browsers. Why we need the support of Java on a browser? If you… Read More »
Given a number N, the task is to form N (from 0) by adding 1 or 2 in the minimum number of operations X such… Read More »
Given an array arr[] of N integers where arr[i] is the height of the ith chocolate and all the chocolated are 1 unit wide, the… Read More »
Obfuscation is a well-known term in software engineering. It is the concealment of written code purposefully by the programmer. It is mainly done for the… Read More »
Given a number N, the task is to set, clear and toggle the K-th bit of this number N. Setting a bit means that if… Read More »
Loops in Java come into use when we need to repeatedly execute a block of statements. Java for loop provides a concise way of writing… Read More »
Decision Making in C/C++ helps to write decision driven statements and execute a particular set of code based on certain conditions. The if statement alone… Read More »
In this article, a static map is created and initialised in Java. A static map is a map which is defined as static. It means… Read More »
In Java, a static method cannot be abstract. Doing so will cause compilation errors. Example: The above code is incorrect as static methods cannot be… Read More »
The static variable may be internal or external depending on the place of declaration. Static variables are stored in initialised data segments. Internal Static Variables:… Read More »