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 →
1. Compiler Compiler takes high-level human readable program and convert into low-level machine readable program. Compiler checks for any error for syntax and some semantic in the code. 2. Interpreter Interpreter takes Read more →
Given an array of size n, your task is to find the least common multiple or LCM of all the elements of the array. Examples: Input : arr = [ 8, 9, Read more →
We have to find a Matrix of order 3 formed by given 9-elements whose determinant is maximum. Examples: Input: arr[9] = { 1, 2, 3, 4, 5, 6, 7, 8, 9} Max Read more →
The first few terms(Fn) of Fibonacci Numbers are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, … For given N find the sum (Sn) of 0 Read more →