i
Siemens
Work with us
Filter interviews by
The number of zeros in the factorial of n depends on the number of factors of 5 in n!
Count the number of factors of 5 in n! to determine the number of zeros
For example, in 10! = 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1, there is one factor of 5, so there is one zero at the end
Sort an array of 0s, 1s, and 2s.
Use three pointers to keep track of the positions of 0s, 1s, and 2s.
Traverse the array and swap elements to their respective positions.
Time complexity: O(n), Space complexity: O(1).
To remove duplicate variables in a string
Iterate through the string and keep track of each character
If a character is already encountered, skip it
Create a new string with non-duplicate characters
Program to transpose a matrix
Iterate through rows and columns of the matrix
Swap the elements at (i,j) and (j,i) positions
Return the transposed matrix
Implement stack data structure
Use an array or linked list to store elements
Push operation adds element to top of stack
Pop operation removes element from top of stack
Peek operation returns top element without removing it
Pre and post fix operators are used to increment or decrement a value before or after it is used in an expression.
Pre-fix operator (++x) increments the value of x and returns the new value.
Post-fix operator (x++) returns the value of x and then increments it.
Both operators can be used with variables of numeric data types.
They can also be used with pointers to increment or decrement the memory address they point to...
RDD (Resilient Distributed Dataset) is a fundamental data structure in Apache Spark for distributed data processing.
RDDs are immutable collections of objects that can be processed in parallel.
They support two types of operations: transformations (e.g., map, filter) and actions (e.g., count, collect).
RDDs can be created from existing data in storage (e.g., HDFS) or by transforming other RDDs.
Example: Using 'map' to...
CDC stands for Change Data Capture, a technique for tracking changes in data for various applications.
Enables real-time data synchronization between databases.
Used in data warehousing to keep data updated without full refresh.
Facilitates event-driven architectures by capturing changes as events.
Example: Capturing updates in a customer database to reflect in a CRM system.
Global variables are accessible from any part of the program and can be modified by any function.
Global variables are declared outside of any function.
They can be accessed and modified by any function in the program.
If a function modifies the value of a global variable, the new value is visible to all other functions.
Global variables can be useful for sharing data between functions.
However, overuse of global varia...
Various design patterns like Singleton, Factory, and Observer are used in my projects.
Singleton pattern ensures a class has only one instance and provides a global point of access.
Factory pattern creates objects without specifying the exact class of object that will be created.
Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified an...
Two coding questions
Various design patterns like Singleton, Factory, and Observer are used in my projects.
Singleton pattern ensures a class has only one instance and provides a global point of access.
Factory pattern creates objects without specifying the exact class of object that will be created.
Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and upd...
I am motivated by the opportunity to learn new technologies and solve complex problems.
Opportunity to work on cutting-edge technologies
Challenge of solving complex problems
Desire for continuous learning and growth
I applied via Recruitment Consulltant and was interviewed in Jun 2024. There was 1 interview round.
The number of zeros in the factorial of n depends on the number of factors of 5 in n!
Count the number of factors of 5 in n! to determine the number of zeros
For example, in 10! = 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1, there is one factor of 5, so there is one zero at the end
I appeared for an interview in Oct 2024, where I was asked the following questions.
CDC stands for Change Data Capture, a technique for tracking changes in data for various applications.
Enables real-time data synchronization between databases.
Used in data warehousing to keep data updated without full refresh.
Facilitates event-driven architectures by capturing changes as events.
Example: Capturing updates in a customer database to reflect in a CRM system.
RDD (Resilient Distributed Dataset) is a fundamental data structure in Apache Spark for distributed data processing.
RDDs are immutable collections of objects that can be processed in parallel.
They support two types of operations: transformations (e.g., map, filter) and actions (e.g., count, collect).
RDDs can be created from existing data in storage (e.g., HDFS) or by transforming other RDDs.
Example: Using 'map' to squa...
General Aptitude questions
I appeared for an interview before Jun 2024, where I was asked the following questions.
Merge two sorted arrays into a single sorted array efficiently.
Use two pointers to track the current index of both arrays.
Compare elements at both pointers and append the smaller one to the result.
Increment the pointer of the array from which the element was taken.
Continue until all elements from both arrays are merged.
Example: Merging [1, 3, 5] and [2, 4, 6] results in [1, 2, 3, 4, 5, 6].
I appeared for an interview in Oct 2024, where I was asked the following questions.
Top trending discussions
The duration of Siemens Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 16 interview experiences
Difficulty level
Duration
based on 154 reviews
Rating in categories
Senior Software Engineer
1.8k
salaries
| ₹16 L/yr - ₹30 L/yr |
Software Developer
1.8k
salaries
| ₹3.8 L/yr - ₹27.1 L/yr |
Software Engineer
1.6k
salaries
| ₹6.7 L/yr - ₹21.3 L/yr |
Manager
614
salaries
| ₹14 L/yr - ₹25.1 L/yr |
Senior Process Associate
488
salaries
| ₹2.5 L/yr - ₹7 L/yr |
Schneider Electric
Siemens Energy
Johnson Controls
Honeywell Automation