All Basic Articles
Given an array of N integers and a number K, the task is to find the length of the longest subarray in which all the… Read More
Given an array of integers arr[]. The task is to find the bitwise XOR of all the prime numbers present in the array. Examples:  Input:… Read More
In one line, There is nothing in Java which is equivalent to typedef of C++. In Java, class is used to name and construct types… Read More
List being an integral part of Python programming has to be learned by all Python users and having a knowledge of its utility and operations… Read More
Given a linked list. The task is to find the second last node of the linked list using a single traversal only. Examples:  Input :… Read More
Given a string which contains lowercase English alphabets. The task is to replace each consonant with the next immediate consonant that comes in English alphabets.Let’s… Read More
Suppose you are given an array. You have to find the length of the longest subarray such that each and every element of it is… Read More
Given an integer ‘k’ and an array of integers ‘arr’ (less than 10^6), the task is to find the product of every K’th prime number… Read More
Given a string. The task is to find the count of characters whose number of occurrences is prime.  Examples:  Input : str = "geeksforgeeks" Output… Read More
The int type implements the numbers.Integral abstract base class. 1. int.bit_length() Returns the number of bits required to represent an integer in binary, excluding the… Read More
The Imagick::modulateImage() function is an inbuilt function in PHP which is used to control the brightness, saturation, and hue of an image. Syntax: bool Imagick::modulateImage(… Read More
The ImagickDraw::setStrokeWidth() function is an inbuilt function in PHP which is used to set the width of the stroke used to draw object outlines. Syntax:… Read More
The ImagickDraw::setStrokeOpacity() function is an inbuilt function in PHP which is used to specify the opacity of stroked object outlines. The value of opacity lies… Read More
The ImagickDraw::translate() function is an inbuilt function in PHP which is used to apply a translation to the current coordinate system. It applies a translation… Read More
The onpaste attribute works when some content is pasted in an element. This event attribute is supported by all HTML elements. It is mostly used… Read More
The ImagickDraw::skewX() function is an inbuilt function in PHP which is used to skews the current coordinate system in the horizontal direction. Syntax: bool ImagickDraw::skewX(… Read More
Given a Linked list of integer data. The task is to write a program that efficiently finds the second smallest element present in the Linked… Read More
Given an array of integers, update every element with sum of previous and next elements with following exceptions.  First element is replaced by sum of… Read More
The list is an important container in Python as it stores elements of all the data types as a collection. Knowledge of certain list operations… Read More
Given a range of numbers, find all the numbers between them. Example: Input : l = 2, u = 5Output : 2 3 4 5… Read More