SAP
Interview Questions and Answers
Given a singly linked list of integers. Your task is to return the head of the reversed linked list.
For example:
The given linked list is 1 -> 2 -> 3...read more
You have been given an arbitrary binary tree and a node of this tree. You need to find the inorder successor of this node ...read more
Make a class using inheritance implementing the database of a system where each object must work on the same database maintaining consistency and mutual exclusion...read more
Q6. How to reverse a linked list and write program to get right view of a binary tree.
To reverse a linked list, we need to traverse the list and change the direction of the pointers. To get the right view of a binary tree, we need to traverse the tree and keep track of the rightmost node at each level.
To reverse a linked list, we can use three pointers to keep track of the current, previous, and next nodes.
To get the right view of a binary tree, we can use a queue to traverse the tree level by level and keep track of the rightmost node at each level.
Both opera...read more
Q7. design a calculator that does operations on 128 bit integers.
Design a calculator that performs operations on 128 bit integers.
Use a data structure like an array to store the 128 bit integers.
Implement functions for addition, subtraction, multiplication, and division.
Consider handling overflow and underflow cases.
Use bitwise operations for efficient calculations.
Q8. Subjects you are comfortable with
I am comfortable with various subjects related to software development.
Programming languages (e.g. Java, Python, C++)
Web development (e.g. HTML, CSS, JavaScript)
Database management (e.g. SQL, MongoDB)
Software testing and debugging
Version control systems (e.g. Git)
Object-oriented programming concepts
Algorithms and data structures
Q9. what are binary trees?
Binary trees are hierarchical data structures composed of nodes, where each node has at most two children.
Consists of nodes with at most two children - left and right
Each node can have zero, one, or two children
Used in various applications like binary search trees, expression trees, etc.
More about working at SAP
Interview Process at null
Reviews
Interviews
Salaries
Users/Month