## Longest sub-string having frequency of each character less than equal to k

Given a string str of length n. The problem is to find the length of the longest sub-string in str having frequency of each character… Read More »

## PHP | array_push() Function

This inbuilt function of PHP is used to push new elements into an array. We can push one or more than one element into the… Read More »

## Average of Squares of Natural Numbers

Given a number n, find the average of square of natural Numbers till n Examples : Input : n = 2 Output :2.5 12 +… Read More »

## Nutanix Interview Experience | Set 4

Round 1: 3 Questions Q1. https://www.geeksforgeeks.org/program-for-nth-fibonacci-number/ Q2. Broadcast Tree Algorithm and its order given at http://mpitutorial.com/tutorials/mpi-broadcast-and-collective-communication/No code for it. Q3. Given an array of billion… Read More »

## Cognizant Interview Experience | Set 5 (On Campus for Associate)

Round 1: Online Test on AMCAT There were 4 sections : Critical Reasoning, Data Interpretation, English Comprehension and Automata (2 Coding Questions) First 3 sections… Read More »

## Python | remove() and discard() in Sets

In this article, we will see how to remove an element in a set, using the discard() and remove() method. We will also learn the… Read More »

## Count subsequences in first string which are anagrams of the second string

Given two strings str1 and str2 of length n1 and n2 respectively. The problem is to count all the subsequences of str1 which are anagrams… Read More »

## PHP | array_rand() Function

This inbuilt function of PHP is used to fetch a random number of elements from an array. The element is a key and can return… Read More »

## PHP | array_pop() Function

This inbuilt function of PHP is used to delete or pop out and return the last element from an array passed to it as parameter.… Read More »

## Python Program for Find sum of even factors of a number

Given a number n, the task is to find the even factor sum of a number. Examples: Input : 30 Output : 48 Even dividers… Read More »

## Java Program to Find sum of even factors of a number

Given a number n, the task is to find the even factor sum of a number. Examples: Input : 30 Output : 48 Even dividers… Read More »

## C++ Program to find sum of even factors of a number

Given a number n, the task is to find the even factor sum of a number. Examples: Input : 30 Output : 48 Even dividers… Read More »

## Find sum of even factors of a number

Given a number n, the task is to find the even factor sum of a number. Examples: Input : 30 Output : 48 Even dividers… Read More »

## Self Organizing List : Move to Front Method

Self Organizing list is a list that re-organizes or re-arranges itself for better performance. In a simple list, an item to be searched is looked… Read More »

## Python Set | Check whether a given string is Heterogram or not

Given a string S of lower case characters. The task is to check whether a the given string is Heterogram or not. A heterogram is… Read More »