All Hard Articles
Given two integers and . The task is to find the Nth term which is divisible by either of or . Examples :  Input : a = 2, b… Read More
Given two positive integers L and R (represented as strings) where . The task is to find the total number of super-palindromes in the inclusive range… Read More
Given an integer N. The task is to write a program to find the Nth term of the given series:   2 + 6 + 13… Read More
MAQ Software visited our campus on 11th sept 18′ for the post of software engineer full time. Round 1: (Online test) First was 30 min… Read More
Given a string ‘s’ check if all of its palindromic sub-strings are of odd length or not. If yes then print “YES” or “NO” otherwise.… Read More
In graph theory, edge coloring of a graph is an assignment of “colors” to the edges of the graph so that no two adjacent edges… Read More
In the last post, we discussed the Insertion and Union of Fibonacci Heaps. In this post, we will discuss Extract_min(), Decrease_key() and Deletion() operations on… Read More
Given a string consisting of only 0’s and 1’s. Now you are given N non-intersecting ranges L, R ( L <= R), more specifically [L1,… Read More
Given a natural number n, print all the subsets of the set without using any array or loop (only the use of recursion is allowed).Examples:   Input… Read More
Given an array of n-positive elements. In each operation, you can select some elements and decrease them by 1 and increase remaining elements by m.… Read More
Given an array of N numbers, find length of the longest subarray such that K is the second largest element on insertion.  Examples:  Input: a[]… Read More
Prerequisite: Types of Error PHP is used for web development. Error handling in PHP is almost similar to error handling in all programming languages. The default… Read More
The computeIfAbsent(Key, Function) method of HashMap class is used to compute the value for a given key using the given mapping function. Store the computed… Read More
One can use a variety of network tools to perform tasks such as obtaining information about other systems on your network, accessing other systems, and… Read More
Given a sorted doubly linked list of positive distinct elements, the task is to find pairs in the doubly linked list whose product is equal… Read More
Using isset() Function The isset() function is an inbuilt function in PHP which checks whether a variable is set and is not NULL. This function… Read More
ArrayList.Sort Method is used to sorts the elements in the ArrayList. There are total 3 methods in the overload list of this method as follows:… Read More
Given an array of N numbers. The task is to maximize the number of subarrays with XOR value zero by swapping the bits of an… Read More
Test: 15-20 MCQs (OOPs, OS, DBMS, Time complexity, classes) Write a program to check whether given string of parenthesis is balanced or not. INPUT: 2… Read More