All Medium Articles Basic Easy Medium Hard Expert All Categories Arrays Misc Program Output Strings Linked List Bit Magic Articles Tree MCQ GFacts Interview Experiences GBlog Stack Queue Algorithms Analysis Dynamic Programming Greedy Backtracking Pattern Searching Divide and Conquer Searching Sorting Mathematical Geometric Heap Hash Randomized Combinatorial Matrix Binary Search Tree Advanced Data Structure Project Technical Scripter Python Competitive Programming Internship Experienced TechTips Geek on the Top Branch and Bound Game Theory Computer Subject Computer Networks Operating Systems DBMS GATE CS Programming Language SQL Java Compiler Design Recursion Puzzles C C++ Data Structures Graph School Programming Design Pattern Articles Placements QA – Placements Reasoning – Placements English – Placements CS – Placements DI – Placements Quizzes Aptitude Web technologies Questions Engineering Mathematics Questions Python-Quizzes QA – Placement Quizzes C Quiz C++ Quiz Java Quiz GATE Operating Systems Questions DBMS Quiz Computer Networks Quiz Data Structures Algorithms Quiz Compiler Design Computer Organization and Architecture Theory of Computation Digital Electronics & Logic Design Theory of Computation & Automata Computer Organization & Architecture Engineering Mathematics Difference Between Advanced Computer Subject C Programs C++ Programs Java Programs Python Programs Web Technologies JavaScript Linux-Unix GeeksforGeeks Initiatives ISRO UGC-NET Software Engineering C# Perl Ruby PHP JS++ PHP Programs Machine Learning C# Programs Scala Hadoop Go Language HTML

Sum of all Submatrices of a Given Matrix 3

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 »

Find index i such that prefix of S1 and suffix of S2 till i form a palindrome when concatenated 3

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 »

Search element in a Spirally sorted Matrix 3.5

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 »

Select numbers in such way to maximize the amount of money 3

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 »

Generate a random permutation of elements from range [L, R] (Divide and Conquer) 3

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 »

How to validate an Email using PHP? 3

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 »

Count primes that can be expressed as sum of two consecutive primes and 1 3.5

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 »

Sum of bitwise AND of all subarrays 3.5

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 »

Source to destination in 2-D path with fixed sized jumps 3

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 »

Why learning C Programming is a must? 3

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 »

Numbers less than N that are perfect cubes and the sum of their digits reduced to a single digit is 1 3

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 SDE1 3

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 »

How to delete an array element based on key in PHP? 3

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 »

Maximum sub-array sum after dividing array into sub-arrays based on the given queries 3

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 »

Count the total number of squares that can be visited by Bishop in one move 3

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 »

Wipro National Elite Talent Hunt 2019 Interview Experience 3

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 »

Find Intersection of all Intervals 3

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 »

Dumpster Diving/Trashing 3

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 »

Amazon Interview Experience SDE-1 3

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 »

Computer Organization | Subprogram and its characteristics 3

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 »