## Program to find average of all nodes in a Linked List

Given a singly linked list. The task is to find the average of all nodes of the given singly linked list. Examples: Input: 7->6->8->4->1 Output:… Read More »

## Problem of 8 Neighbours of an element in a 2-D Matrix

Given a 2-D Matrix and an integer ‘K’, the task is to predict the matrix after ‘K’ iterations given as follows: An element 1 in… Read More »

## ML | Text Summarization of links based on user query

Whenever a user searches for particular information on the internet, multiple results are returned which are explained in variety ways. It becomes difficult and time-consuming… Read More »

## How to randomly select rows from Pandas DataFrame

Let’s discuss how to randomly select rows from Pandas DataFrame. A random selection of rows from a DataFrame can be achieved in different ways. Create… Read More »

## Analyzing Mobile Data Speeds from TRAI with Pandas

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… Read More »

## Sum of elements in an array having prime frequency

Given an array arr, the task is to find the sum of the elements which have prime frequencies in the array. Note: 1 is neither… Read More »

## Largest number in an array that is not a perfect cube

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 »

## Non-generic Vs Generic Collection in Java

Differences between Non-generic and Generic Collection Programs that uses Generics has got many benefits over non-generic code. Code Reuse: By using Generics, one needs to… Read More »

## CPU Scheduling | Longest Remaining Time First (LRTF) algorithm

Prerequisite – Process Management | CPU Scheduling This is a pre-emptive version of Longest Job First (LJF) scheduling algorithm. In this scheduling algorithm, we find… Read More »

## Box plot visualization with Pandas and Seaborn

Box Plot is the visual representation of the depicting groups of numerical data through their quartiles. Boxplot is also used for detect the outlier in… Read More »

## Program to convert the diagonal elements of the matrix to 0

Given an N*N matrix. The task is to convert the elements of diagonal of a matrix to 0. Examples: Input: mat[][] = {{ 2, 1,… Read More »

## DelayQueue class in Java with Example

DelayQueue class implements the BlockingQueue interface. DelayQueue is a specialized Priority Queue that orders elements based on their delay time. It means that only those… Read More »

## Find maximum element of each column in a matrix

Given a matrix, the task is to find the maximum element of each column. Examples: Input: [1, 2, 3] [1, 4, 9] [76, 34, 21]… Read More »

## Number of pairs with Bitwise OR as Odd number

Given an array A[] of size N. The task is to find the how many pair(i, j) exists such that A[i] OR A[j] is odd.… Read More »

## Count pairs with Bitwise XOR as EVEN number

Given an array of N integers, the task is to find the number of pairs (i, j) such that A[i] ^ A[j] is even. Examples:… Read More »