• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to secondary sidebar

GoHired

Interview Questions asked in Google, Microsoft, Amazon

Join WeekEnd Online Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

  • Home
  • Best Java Books
  • Algorithm
  • Internship
  • Certificates
  • About Us
  • Contact Us
  • Privacy Policy
  • Array
  • Stack
  • Queue
  • LinkedList
  • DP
  • Strings
  • Tree
  • Mathametical
  • Puzzles
  • Graph

SAP Interview Questions

March 1, 2015 by Dhaval Dave

In SAP Interview, Questions are pretty simple and straight forward, easy to code but they ask you to write proper unit test cases and they check if you have handles all edge cases or not.

SAP Interview Question # 1

Complete the code to solve the following problem statement
Given two integers N and M (0 <= N <= M <= 10 7), find the sum of digits of all integers from N to M, both inclusive. Example: Input: 1 10 Output: 46

SAP Interview Question # 2
Planning the street
King Kohima has reserved a new exclusive street for his executive class employees where they can build their homes. He has assigned you to plan that street. You have to decide on which plots along the street are new building allowed to be built. In order to this, you first want to calculate the number of possible ways of assigning free plots to buildings while keeping in mind this restriction – No two consecutive plots can have buildings on them. This is done to ensure a sense of free space in the arena. The street is divided in M sections. Each section corresponds to 2 plots, one on each side of the street. Find the number of possible assignments. Input In the first line you’re given M ( M ≤ 1000 ). Output In the first and only line output the result/ Example Input: 3 Output: 25 Example explanation: If we just look at the one street side and mark X as a plot where building is allowed and Y as a free plot, we have: XYX, YXY, YYX, XYY, YYY. Since the same number exists on the other side, we have 5*5 = 25 combinations.

Check Other Questions Asked by SAP/ADOBE/AMAZON

Tips to crack SAP Interview Questions

I was searching and suggesting people for best sites to get tips and tricks to crack for coding interviews, Where I found very good this material
1. Gohired Tutor :
Its nominal paid service, but very helpful to crack latest interview questions of any company. We particularly focus on Algorithm and Data Strucutre and easiest programming language like Python,C++. I would recommend must buy Program.
2. Books :
When I was preparing for SAP and Amazon, I have read several book, sites and blogs to prepare for, out which best site, I have already recommended to you guys.There are plenty of books available for Coding interview, out of which I liked these three at best.

a) Data Structures and Algorithms Made Easy: Data Structures and Algorithmic Puzzles, Fifth Edition ( Ex. Amazon, Microsoft and My Friend) : This book is best for college grads, As this book starts with simple basic fundamentals of data structure and algorithm, and gradually very good and tough questions with explanation this book covers, so basically after completing this book You can think how to use and modify any existing data structure and algorithm for your question.
b) Cracking the Coding interview by Gayle Laakmann McDowell this book is for good coders and for those who understand reuse of exiting data structure properly, This book contains best logical and complex questions on Data Structure and Algorithm.

c) How Would You Move Mount Fuji?: Microsoft’s Cult of the Puzzle — How the World’s Smartest Companies Select the Most Creative Thinkers : This book covers all good puzzles that can be asked as part of interview, when Interviewer wants to see your thinking ability.

If you want to share such question , solution  or your experience of any company, Please do share at admin@gohired.in , As sharing is caring

Best Interview Preparation books :

 

Similar Articles

Filed Under: Interview Experience, Uncategorized

Reader Interactions

Primary Sidebar

Join WeekEnd Online/Offline Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

Join WeekEnd Online/Offline Batch from 4-April-2020

WhatsApp us

Secondary Sidebar

Custom Search

  • How I cracked AMAZON
  • LeetCode
  • Adobe
  • Amazon
  • Facebook
  • Microsoft
  • Hacker Earth
  • CSE Interview

Top Rated Questions

Best Java Book | Top Java Programming Book for Beginners

TicTacToe Game As Asked in Flipkart

BFS (Breath First Search)

The Magic HackerEarth Nirvana solutions Hiring Challenge

C++ OOPs Part1

Find if two rectangles overlap

Find Nearest Minimum number in left side in O(n)

write a c program that given a set a of n numbers and another number x determines whether or not there exist two elements in s whose sum is exactly x

Search element in a matrix with all rows and columns in sorted order

Client Server C program

Binary Tree in Java

Sort Stack in place

Find an index i such that Arr [i] = i in array of n distinct integers sorted in ascending order.

Check a String is SUBSEQUENCE of another String Find Minimum length for that ( DNA Matching )

simple sql injection

Given a sorted array and a number x, find the pair in array whose sum is closest to x

Regular Expression Matching

Reversal of LinkedList

Word Break Problem

System Design: Designing a LLD for Hotel Booking

‘N’ Story Building, with 1,2,3 steps how many ways can a person reach top of building.

LeetCode: Container With Most Water

Printing intermediate Integers between one element & next element of array

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

BlueStone E-commerce Interview Experience

Sequence Finder Dynamic Programming

VMWare Openings

N teams are participating. each team plays twice with all other teams. Some of them will go to the semi final. Find Minimum and Maximum number of matches that a team has to win to qualify for finals ?

Walmart Labs Interview Experience

Print all nodes that are at distance k from a leaf node

Copyright © 2025 · Genesis Framework · WordPress · Log in