Skip to content
Courses
For Working Professionals
LIVE
DSA Live Classes
System Design
Java Backend Development
Full Stack LIVE
Explore More
Self-Paced
DSA- Self Paced
SDE Theory
Must-Do Coding Questions
Explore More
For Students
LIVE
Competitive Programming
Data Structures with C++
Data Science
Explore More
Self-Paced
DSA- Self Paced
CIP
JAVA / Python / C++
Explore More
School Courses
School Guide
Python Programming
Learn To Make Apps
Explore more
All Courses
Tutorials
Algorithms
Analysis of Algorithms
Asymptotic Analysis
Worst, Average and Best Cases
Asymptotic Notations
Little o and little omega notations
Lower and Upper Bound Theory
Analysis of Loops
Solving Recurrences
Amortized Analysis
What does 'Space Complexity' mean ?
Pseudo-polynomial Algorithms
Polynomial Time Approximation Scheme
A Time Complexity Question
Searching Algorithms
Sorting Algorithms
Graph Algorithms
Pattern Searching
Geometric Algorithms
Mathematical
Bitwise Algorithms
Randomized Algorithms
Greedy Algorithms
Dynamic Programming
Divide and Conquer
Backtracking
Branch and Bound
All Algorithms
Data Structures
Arrays
Linked List
Stack
Queue
Binary Tree
Binary Search Tree
Heap
Hashing
Graph
Advanced Data Structure
Matrix
Strings
All Data Structures
Interview Corner
Company Preparation
Top Topics
Practice Company Questions
Interview Experiences
Experienced Interviews
Internship Interviews
Competititve Programming
Design Patterns
System Design Tutorial
Multiple Choice Quizzes
Languages
C
C++
Java
Python
C#
JavaScript
jQuery
SQL
PHP
Scala
Perl
Go Language
HTML
CSS
Kotlin
ML & Data Science
Machine Learning
Data Science
CS Subjects
Mathematics
Operating System
DBMS
Computer Networks
Computer Organization and Architecture
Theory of Computation
Compiler Design
Digital Logic
Software Engineering
GATE
GATE Computer Science Notes
Last Minute Notes
GATE CS Solved Papers
GATE CS Original Papers and Official Keys
GATE 2021 Dates
GATE CS 2021 Syllabus
Important Topics for GATE CS
Web Technologies
HTML
CSS
JavaScript
AngularJS
ReactJS
NodeJS
Bootstrap
jQuery
PHP
Software Designs
Software Design Patterns
System Design Tutorial
School Learning
School Programming
Mathematics
Number System
Algebra
Trigonometry
Statistics
Probability
Geometry
Mensuration
Calculus
Maths Notes (Class 8-12)
Class 8 Notes
Class 9 Notes
Class 10 Notes
Class 11 Notes
Class 12 Notes
NCERT Solutions
Class 8 Maths Solution
Class 9 Maths Solution
Class 10 Maths Solution
Class 11 Maths Solution
Class 12 Maths Solution
RD Sharma Solutions
Class 8 Maths Solution
Class 9 Maths Solution
Class 10 Maths Solution
Class 11 Maths Solution
Class 12 Maths Solution
Physics Notes (Class 8-11)
Class 8 Notes
Class 9 Notes
Class 10 Notes
Class 11 Notes
CS Exams/PSUs
ISRO
ISRO CS Original Papers and Official Keys
ISRO CS Solved Papers
ISRO CS Syllabus for Scientist/Engineer Exam
UGC NET
UGC NET CS Notes Paper II
UGC NET CS Notes Paper III
UGC NET CS Solved Papers
Student
Campus Ambassador Program
School Ambassador Program
Project
Geek of the Month
Campus Geek of the Month
Placement Course
Competititve Programming
Testimonials
Student Chapter
Geek on the Top
Internship
Careers
Jobs
Apply for Jobs
Post a Job
JOB-A-THON
Practice
All DSA Problems
Problem of the Day
Interview Series: Weekly Contests
Bi-Wizard Coding: School Contests
Contests and Events
Practice SDE Sheet
Curated DSA Lists
Top 50 Array Problems
Top 50 String Problems
Top 50 Tree Problems
Top 50 Graph Problems
Top 50 DP Problems
Write
Come write articles for us and get featured
Practice
Learn and code with the best industry experts
Premium
Get access to ad-free content, doubt assistance and more!
Jobs
Come and find your dream job with us
Geeks Digest
Quizzes
Geeks Campus
Gblog Articles
IDE
Campus Mantri
Home
Saved Videos
Courses
GBlog
Puzzles
What's New ?
Change Language
Data Structures
Algorithms
Interview Preparation
Topic-wise Practice
C++
Java
Python
Competitive Programming
Machine Learning
HTML
SDE Sheet
Puzzles
GFG School
Projects
▲
Tag Archives:
SAP Labs
Convert a Binary Tree into its Mirror Tree
Easy
Mirror of a Tree: Mirror of a Binary Tree T is another Binary Tree M(T) with left and right children of all non-leaf nodes interchanged. …
Read More
Accolite
Adobe
Amazon
Amazon-Question
Belzabar
Belzabar-Question
Convert to Mirror
cpp-queue
eBay
eBay-Question
Get the Mirror
Microsoft
Mirror Tree
Morgan Stanley
Myntra
Myntra-Question
Ola Cabs
OLA-Question
Paytm
Paytm-Question
Prop-Tiger-Question
Samsung
SAP Labs
Snapdeal
Snapdeal-Question
tree-traversal
Trees
VMWare
VMWare-Question
Tree
Program to find whether a given number is power of 2
Easy
Given a positive integer, write a function to find if it is a power of two or not.Examples : Input : n = 4 Output…
Read More
FactSet
Qualcomm
Samsung
SAP Labs
Bit Magic
Mathematical
Given an array A[] and a number x, check for pair in A[] with sum as x (aka Two Sum)
Easy
Write a program that, given an array A[] of n numbers and another number x, determines whether or not there exist two elements in A[]…
Read More
ABCO
Accolite
Amazon
Amazon-Question
CarWale
CarWale-Question
FactSet
Flipkart
Hike
Infosys
Microsoft
Morgan Stanley
SAP Labs
Wipro
Zoho
Arrays
Backtracking
Hash
Recursion
Page 13 of 13
« First
«
...
9
10
11
12
13
What's New
Must Do Coding Questions - Self Paced
View Details
Interview Series- Prepare, Practice & Upskill
View Details
Data Structures & Algorithms- Self Paced Course
View Details
Most popular in SAP Labs
QuickSort
Binary Search
HeapSort
Reverse a linked list
Program for array rotation
Most visited in SAP Labs
Given an array A[] and a number x, check for pair in A[] with sum as x (aka Two Sum)
K'th Smallest/Largest Element in Unsorted Array | Set 1
Search an element in a sorted and rotated array
Sort an array of 0s, 1s and 2s
Program to find GCD or HCF of two numbers
Improve your Coding Skills with Practice
Try It!
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !
Start Your Coding Journey Now!
Login
Register