All Medium Articles
Given an array arr[] containing a random permutation of first N natural numbers, the task is to find the longest sub-sequence having the property that… Read More
There arise several situations while solving a problem where we need to iterate over all possible combinations of an array. In this article, we will… Read More
Given a stack s, the task is to print the elements of the stack from bottom to top, such that the elements are still present… Read More
Given a number N. The task is to count the number of prime numbers from 2 to N that can be expressed as a sum… Read More
Prerequisite – Finite Automata Introduction, DFA of a string in which 2nd symbol from RHS is ‘a’  Problem – Draw deterministic finite automata (DFA) of… Read More
Prerequisite – Finite Automata Introduction Problem: Design a deterministic finite automata (DFA) for accepting the language Regular expression for above language L is, L =… Read More
I’m writing from my Interview Experience for the role of Tech Associate at DBS (Asia’s Largest Digital Bank). Round 1(Online Challenge): First round was an online… Read More
Given an array consisting of N positive integers, find the sum of bit-wise and of all possible sub-arrays of the array. Examples:   Input : arr[]… Read More
Given a Binary tree, the task is to print all the internal nodes in a tree. An internal node is a node which carries at least… Read More
Given a singly linked list, remove all the nodes which have a greater value on the right side. Examples: a) The list 12->15->10->11->5->6->2->3->NULL should be changed to… Read More
Given the source point and the destination point of the path and two integers x and y. The task is to check whether it is… Read More
Giving k sorted arrays, each of size N, the task is to merge them into a single sorted array. Examples:  Input: arr[][] = {{5, 7,… Read More
 Given two strings S1 and S2, you are allowed only to change a character at any position to any vowel if it is a vowel… Read More
A Perl package is a collection of code which resides in its own namespace. Perl module is a package defined in a file having the… Read More
An anonymous method is a method which doesn’t contain any name which is introduced in C# 2.0. It is useful when the user wants to… Read More
Linux is an operating system that is similar to Unix. In Linux, all commands are executed in a terminal that is provided by the system.… Read More
The HTML DOM Style Property is used to change the appearance of any DIV element. It’s changing the appearance whenever the mouse has hovered over… Read More
Given a Binary Tree, the task is to print the Reverse zigzag Order of the tree.Examples:   Input: 1 / \ 2 3 / \ \… Read More
Given n sentences. The task is to count the number of words that appear in all of these sentences.Note that every word consists of only… Read More
Given a number n, the task is to print all the numbers less than or equal to n which are perfect cubes as well as… Read More