All Basic Articles
Given an array of positive integers. Replace every element by the product of all other elements of the array. Examples:  Input : arr[] = {… Read More
To implement an algorithm to determine if a string contains all unique characters.  Examples:  Input : s = “abcd” Output: True “abcd” doesn’t contain any duplicates. Hence… Read More
Given an array of integers, find the elements from the array whose frequency lies in the range [l, r]. Examples:  Input : arr[] = {… Read More
Given an array of integers, replace every element by its frequency in the array. Examples:  Input : arr[] = { 1, 2, 5, 2, 2,… Read More
Given an array, find first and last elements of it. Input: {4, 5, 7, 13, 25, 65, 98} Output: First element: 4 Last element: 98… Read More
Given an array of integers, remove all the elements which appear strictly less than k times. Examples:  Input : arr[] = {1, 2, 2, 3,… Read More
Given an unsorted array of integers, print the array after removing the duplicate elements from it. We need to print distinct array elements according to… Read More
Given an array of integers, remove all the occurrences of those elements which appear strictly more than k times in the array.Examples:  Input : arr[]… Read More
In this article, we will learn how to calculate Mean, Median, and Mode with Python without using external libraries. 1. Mean:  The mean is the… Read More
In Python, Every variable in Python holds an instance of an object. There are two types of objects in Python i.e. Mutable and Immutable objects.… Read More
In this article, you would come to know about proper structuring and formatting your python programs. Python Statements In general, the interpreter reads and executes… Read More
Python String rstrip() method returns a copy of the string with trailing characters removed (based on the string argument passed). If no argument is passed,… Read More
Given the center of circle (x1, y1) and its radius r, find the equation of the circle having center (x1, y1) and having radius r.Examples:  … Read More
What is dict in python ? Python dictionary is similar to hash table in languages like C++. Dictionary are used to create a key value pair… Read More
Constructors in PythonDestructors are called when an object gets destroyed. In Python, destructors are not needed as much as in C++ because Python has a… Read More
Given a binary string of length, at least two. We need to check if it is possible to rearrange a binary string such that there… Read More
Given a number N denoting the number of rows. The task is to print the zigzag pattern with N rows as shown in the below… Read More
The placeholder selector in the CSS pseudo-element is used to design the placeholder text by changing the text color and it allows to modify the… Read More
Given an array, the task is to reverse the given array in Java. Examples:  Input : 1, 2, 3, 4, 5 Output :5, 4, 3,… Read More
Given an unsorted list of integers, find maximum and minimum values in it. Input : list = [10, 4, 3, 2, 1, 20] Output :… Read More