The Wayback Machine - https://web.archive.org/web/20220127145232/https://www.geeksforgeeks.org/medium/5/
Skip to content
All Medium Articles
Krita is a free and open-source raster graphics editor designed primarily for digital painting and 2D animation. It runs on Windows, macOS, Linux, Android, and… Read More
Compilers and interpreters use grammar to build the data structure in order to process the programs. So ideally one program should have one derivation tree.… Read More
Brave is a free and open-source web browser developed by Brave Software, Inc. based on the Chromium web browser. Built on top of Google’s open-source… Read More
Given an array arr[], the task is to calculate the count of possible triplets such that they can be removed from the array without changing… Read More
Given a number N. The task is to count the number of distinct XOR of any possible pairs using numbers from 1 to N inclusive.… Read More
Given a circular binary array arr[] of N integers, the task is to find the maximum count of pairs of adjacent elements whose sum is… Read More
Given a binary array a[] and a number k, we need to find the length of the longest subsegment of ‘1’s possible by changing at… Read More
Given a binary string str representing the scores of a Volleyball match. The task is to find the winner of the match according to below… Read More
Given an array, arr[] of length N, and an integer K. The value of the i-th element is arr[i]. The task is to find the… Read More
Given a dictionary of strings dict[] and a character array arr[]. Print all valid words of the dictionary that are possible using characters from the… Read More
Given a linked list, write a function to reverse every k nodes (where k is an input to the function). Examples: Input: 1->2->3->4->5->6->7->8->NULL and k =… Read More
Hashing is the process of generating a value from a text or a list of numbers using a mathematical function known as a hash function.… Read More
What is Vector? In C++, a vector is similar to dynamic arrays with the ability to resize itself automatically. Vector elements are stored in contiguous… Read More
Given a 2D array arr[][]of integers of size M x N, where N is the number of columns and M is the number of rows… Read More
The Bash has three types of looping constructs namely for, while, and until. The Until loop is used to iterate over a block of commands… Read More
Given string str containing both uppercase and lowercase letters, and an integer K. The task is to find the longest substring containing exactly K vowels… Read More
Given an N-ary tree. The task is to replace the values of each node with the sum of all its subtrees and the node itself. … Read More
Given a string str of length of N that is in the encoded form with alphabets and * . The task is to find the… Read More
I had applied for Mindtree Software Engineer C1 (Off-Campus) in the first week of November. The entire process was conducted on WeCP platform, in which… Read More
Given a binary string str, the task is to find the count of K length subarrays containing only 1s. Examples: Input: str = “0101000”, K=1Output:… Read More

Start Your Coding Journey Now!