Given four integers a, b, c and N. The task is to find the Nth term which is divisible by either of a, b or… Read More »

Given an integer N, the task is to find the Nth Mosaic number. A Mosaic number can be expressed as follows: If N = Aa… Read More »

Multi-line comments(comments block) are used for description of large text of code or comment out chunks of code at the time of debugging application. Does… Read More »

Given an integer N, the task is to print the first N terms of the Lower Wythoff sequence. Examples: Input: N = 5 Output: 1,… Read More »

Given an array arr[] of N integers, the task is to find the minimum deletions required to make the GCD of the resulting array elements… Read More »

There are N boys which are to be seated around a round table. The task is to find the number of ways in which N… Read More »

In 2006, Amazon Web Services, (AWS) began offering IT services to the public in the form of web services commonly known as cloud computing. One… Read More »

Given a graph with N nodes and K bidirectional edges between them find the number of nodes which can be reachable from a particular. Two… Read More »

Given a Date and the task is to get the date of three month prior using javascript. Approach: First select the date object. Then use… Read More »

Given N-sided polygon we need to find the number of triangles formed by joining the vertices of the given polygon with exactly one side being… Read More »

Given two numbers represented by two linked lists, write a function that returns sum list. The sum list is linked list representation of addition of… Read More »

Given an array, the task is to remove the duplicate elements from the array using STL in C++ Examples: Input: arr[] = {2, 2, 2,… Read More »

There are two popular ways to convert currency string into float string using different JavaScript inbuilt libraries. Method 1: This is a simple approach in… Read More »

We can sort the strings in JavaScript by following methods described below: Using sort() method Using loop Using sort() method: In this method, we use… Read More »

Prerequisite: JavaScript | getDate() JavaScript | setDate() Problem Statement: In order to calculate yesterday’s date in JavaScript, we need to familiarize ourselves with 2 functions.… Read More »

I interviewed for Google recently and here is my experience in detail. The interview process took around 5 months for completion as they provide you… Read More »

Given an integer N, the task is to count the number of possible Binary Search Trees with N keys. Examples: Input: N = 2 Output:… Read More »

Given a Binary Search Tree, the task is to find the node with maximum value. Examples: Input: Output: 22 Recommended: Please try your approach on… Read More »

Alan Turing stated in 1947 that “What we want is a machine that can learn from experience.” And that was the beginning of Machine Learning.… Read More »

Given an unsorted array arr[] of size n, the task is to find the minimum difference between any pair in the given array. Input: arr[]… Read More »