Multiple Inheritance is the property of the Object Oriented Programming languages in which child class or sub class can inherit the properties of the multiple… Read More »

Buttons are one of the most used elements in web pages. Buttons are used for event processing and interacting with the user. From submitting a… Read More »

Given a ‘N*N’ matrix, the task is to find the XOR of XORs of all possible sub-matrices. Examples: Input :arr = {{3, 1}, {1, 3}}… Read More »

I applied for Microsoft internship(TECH SET GO 2018) through mettl.com. There were few basic criteria to apply like min 7 cgpa, no backlogs..it was a… Read More »

Given a NxN 2-D matrix, the task to find the sum of all the submatrices. Examples: Input : arr[] = {{1, 1}, {1, 1}}; Output… Read More »

Given an array Arr[] of N integers. The task is to find minimum number of elements needed to be removed from the array, so that… Read More »

Given two strings A and B of equal lengths, the task is to find an index i such that A[0…i] and B[i+1…n-1] give a palindrome… Read More »

Given an integer array containing digits from [0, 9], the task is to print all possible letter combinations that the numbers could represent. A mapping… Read More »

Given a Binary Tree, the task is to print the zigzag order of the tree. Examples: Input : 7 / \ 6 5 / /… Read More »

Given two arrays A1 and A2 of N numbers. There are two people A and B who select numbers out of N. If A selects… Read More »

Given a range [L, R] where L ≤ R, the task is to generate a random permutation of the sequence [L, L + 1, L… Read More »

This article contains different methods to validate an email address in PHP. It uses regular expressions and inbuilt email validation function. The input string is… 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 »

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 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 »

C is a procedural programming language. It was initially developed by Dennis Ritchie between 1969 and 1973. It was mainly developed as a system programming… 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 »

Amazon Interview Experience SDE-1 This was a hiring drive at the Chennai office. Around 40 people attended. Day 1 interviews Round 1: Written Round https://www.geeksforgeeks.org/longest-palindrome-substring-set-1/… Read More »

Given an array (One dimensional or multidimensional) and the task is to delete an array element based on key value. Examples: Input: Array ( [0]… Read More »

Given an array arr[] and an integer k, we can cut this array at k different positions where k[] stores the positions of all the… Read More »