## Array Manipulation and Sum

Given an array arr[] of N integers and an integer S. The task is to find an element K in the array such that if… Read More »

## Determine the count of Leaf nodes in an N-ary tree

Given the value of ‘N’ and ‘I’. Here, represents the number of internal nodes present in an N-ary tree and every node of the N-ary… Read More »

## Shortest path to traverse all the elements of a circular array in increasing order

There are N distinct integers arranged on a circle. The distance between any two adjacent numbers is 1. The task is to travel on this… Read More »

## Program for power of a complex number in O(log n)

Given a complex number of the form x + yi and an integer n, the task is to calculate the value of this complex number… Read More »

## Print Leaf Nodes at a given Level

Given a Binary tree, print all the leaf nodes of a Binary tree at a given level L. Examples: Input: 1 / \ 2 3… Read More »

## Number of strings that satisfy the given condition

Given N strings of equal lengths. The strings contain only digits (1 to 9). The task is to count the number of strings that have… Read More »

## Android | How to add Radio Buttons in an Android Application?

Pre-requisites: Android App Development Fundamentals for Beginners Guide to Install and Set up Android Studio Android | Starting with first app/android project Android | Running… Read More »

## Minimum number of given operations required to convert a string to another string

Given two strings S and T of equal length. Both strings contain only the characters ‘0’ and ‘1’. The task is to find the minimum… Read More »

## Python | Replace multiple occurrence of character by single

Given a string and a character, write a Python program to replace multiple occurrences of the given character by a single character. Examples: Input :… Read More »

## GATE | GATE CS 2019 | Question 65

If L is a regular language over ∑ = {a, b}, which one of the following languages is NOT regular? (A) L⋅ LR {xy ⏐… Read More »

## Minimum elements to be removed such that sum of adjacent elements is always odd

Given an array of N integers. The task is to eliminate the minimum number of elements such that in the resulting array the sum of… Read More »

## top command in Linux with Examples

top command is used to show the Linux processes. It provides a dynamic real-time view of the running system. Usually, this command shows the summary… Read More »

## Find the value of ln(N!) using Recursion

Given a number N, the task is to find the log value of the factorial of N i.e. log(N!). Note: ln means log with base… Read More »

## Program to reverse a linked list using Stack

Given a linked list. The task is to reverse the order of the elements of the Linked List using an auxiliary Stack. Examples: Input :… Read More »

## GATE | GATE CS 2019 | Question 64

Consider the following C program: #include<stdio.h> int main(){ int a[] = {2, 4, 6, 8, 10} int i, sum = 0; *b = a +… Read More »