Given a Rooted Tree with n node, labeled from 1 to n and tree is rooted at node 1. Parent of i-th node is p[i], i is starting from 2 as 1 ...read more
The number system is basically a representation of numbers in different forms and with different operators. The origin of the number system was a long time ago by our ancestors. Earlier they ...read more
Given an integer array arr[], the task is to find the number of triplets at distinct indices that can be removed from the array such that the mean remains the same as ...read more
Given a non negative number, you are required to find whether or not the number can be composed from sum of some number of 7s, 5s and 3s i.e. if a number ...read more
Given a positive integer N, the task is to construct an array of length N and maximize the value at index K such that the sum of all the array elements is ...read more
In this article, we will discuss about Hexahectagon number. According to definition of Hexahectagon number: A Hexahectagon number is class of figurate number. It has 600 – sided polygon called Hexahectagon. The ...read more
You can use it to select a smaller group (sample) from a larger population to study, in order to make conclusions about the entire population. There are two main types of sampling ...read more
In this article, we will discuss some of similar questions that are easy to solve with few changes in solution codes. Leetcode is a platform to practice DSA problems for those who ...read more
MAC Addresses and IP Addresses both identify devices on the Internet. The NIC card manufacturer provides MAC Address. Whereas, the Internet Service Provider provides the IP Address. The main difference between them ...read more
1. Procedural Programming Procedural Programming is based on structured programming. It has procedures which are sequences of computational steps. These procedures can be called at various points during program execution. Languages used ...read more