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 »

#
All Medium Articles

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 a spirally sorted matrix with N * N elements and an integer X, the task is to find the position of this given integer… 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 »

Given the position of a Bishop on an 8 * 8 chessboard, the task is to count the total number of squares that can be… Read More »

Round 1: Aptitude Round The Aptitude round consists of the following sections:- Quantitative Aptitude Reasoning Coding Essay Writing The quantitative aptitude and reasoning questions are easy… Read More »

Given N intervals of the form of [l, r], the task is to find the intersection of all the intervals. An intersection is an interval… Read More »

There is a famous saying that most of you might have listened, “One man’s trash is another man’s treasure”. That means what one person considers… Read More »

This was a hiring drive at the Chennai office. Round 1: Written Round Question 1: https://www.geeksforgeeks.org/longest-palindrome-substring-set-1/ Question 2: https://www.geeksforgeeks.org/convert-a-given-tree-to-sum-tree/ Question 3: https://www.geeksforgeeks.org/reverse-a-list-in-groups-of-given-size/ Round 2: This was a F2F… Read More »

A Subprogram is a program inside any larger program that can be reused any number of times. Characteristics of a Subprogram: (1) A Subprogram is… Read More »