All Basic Articles
Given three integer K, L and R (range [L, R]), the task is to find the minimum number of elements the range must be extended… Read More
Given an array of n integers. The task is to find the largest number which is not a perfect cube. Print -1 if there is… Read More
Longest Remaining Time First (LRTF) is a preemptive version of Longest Job First (LJF) scheduling algorithm. In this scheduling algorithm, we find the process with… Read More
The getMonthValue() method of LocalDate class in Java gets the month-of-year field from 1 to 12. Syntax: public int getMonthValue() Parameter: This method does not… Read More
The add(E element) of java.util.Collection interface is used to add the element ‘element’ to this collection. This method returns a boolean value depicting the successfulness… Read More
The isLeapYear() method of LocalDate class in Java checks if the year is leap year or not. Syntax: public boolean isLeapYear() Parameter: This method does… Read More
Given an array of N elements, the task is to convert it into a permutation (Each number from 1 to N occurs exactly once) by… Read More
In Python, Shuffling a sequence of numbers has always been a useful utility and the question that has appeared in many company placement interviews as… Read More
Given a binary tree and two nodes of that binary tree. Find the sum of all nodes with odd values in the path connecting the… Read More
Given four integers sourceX, sourceY, destinationX and destinationY which represent the source and destination coordinates on a chessboard. The task is to find the minimum… Read More
Given an array of integers, find the closest (not considering the distance, but value) greater or the same value on the left of every element.… Read More
Given an array of N integers. The task is to find the largest number which is a perfect cube. Print -1 if there is no… Read More
Given an integer K and an array arr containing only 1 and -1, the task is to find if there is any subset of size… Read More
Web caching is done by a Proxy Server – an intermediate entity between the original server and the client. When a client requests for some… Read More
The Location pathname property in HTML is used to set or return the pathname of a URL. The Location pathname property returns a string that… Read More
The Location protocol property in HTML is used to return the protocol or set the protocol of the current URL. It returns a string that… Read More
The Location hostname property in HTML is used to return the hostname of the current URL. The Location hostname property returns a string that contains… Read More
The Location href property in HTML is used to set or return the complete URL of the current page. The Location href property can also… Read More
Introduction: Inheritance in constructors is a feature in C# that allows a derived class to inherit the constructor of its base class. This means that… Read More
There are various methods to access the elements of a list, but sometimes we may require to access an element along with the index on… Read More