All Basic Articles
Given an integer K and an array arr of integer elements, the task is to print the length of the longest sub-array such that each… Read More
Given an array of elements. The task is to print the modulus of all of the pairwise consecutive elements. That is for all pair of consecutive… Read More
Given an array of integers, the task is to replace every element with the greatest element on its left side.  Note: Replace the first element… Read More
Given a decimal number N, the task is to check if a number has consecutive zeroes or not after converting the number to its K-based… Read More
Given an array of integers. The task is to calculate the count of a number of elements which are divisible by a given number k.… Read More
Given task is to draw a Chessboard in Java Applet  Approach: Create a rectangle with length and breadth of 20 unit each, with 10 rows… Read More
Given task is to draw a smiley face in Java Applet.Approach:   Create three Ovals, one for the face, two for the eyes.Fill eyes oval with… Read More
URL Shortener, as the name suggests, is a service to help to reduce the length of the URL so that it can be shared easily… Read More
Given a list, write a Python program to swap first and last element of the list. Examples:  Input : [12, 35, 9, 56, 24] Output… Read More
Given an integer x, the task is to find if every k-cycle shift on the element produces a number greater than or equal to the… Read More
Given an integer k and an array of integers arr (less than 10^6), the task is to find the sum of every k’th prime number… Read More
Given a number N, the task is to check whether the product of digits at even places of a number is divisible by K. If… Read More
Given an array arr[] of N positive integers. The task is to find the sum of all composite elements which are divisible by a given… Read More
Given a singly linked list containing N nodes, the task is to find the total count of prime numbers. Examples:  Input: List = 15 ->… Read More
Given an array of integers of N elements. The task is to print the absolute difference of all of the pairwise consecutive elements. Pairwise consecutive… Read More
Given a number N. and the task is to find the sum of all multiples of 2 and 5 below N ( N may be… Read More
Given an integer array H which represents heights of buildings and an integer K. The task is to reach the last building from the first… Read More
Given the total number of Legs and Head of Rabbits and Pigeons. The task is to calculate the number of Rabbits and Pigeons. Examples:  Input:… Read More
Comprehensions in Python provide us with a short and concise way to construct new sequences (such as lists, sets, dictionaries, etc.) using previously defined sequences.… Read More
Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages and makes… Read More