Siemens interview experience Real time questions & tips from candidates to crack your interview

Graduate Engineer Trainee

Siemens
upvote
share-icon
1 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Data Structures, OOPS, Tree, Dynamic Programming, DBMS
Tip
Tip

Tip 1 : Go through interview experiences(platform where you find interview experience:- GFG, Coding Ninjas)
Tip 2 : Do DSA (Solve as many problems) 
Tip 3 : Must know about projects that you have mentioned in resume

Application process
Where: Other
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Do not put false things on your resume.
Tip 2 : Resume should be in the correct format.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date3 Feb 2022
Coding problem2

Questions asked by the interviewer:
1. Probability (Medium level)
2. Coding Problem (Easy) (Tips:- first give some brute force approach then move forward to optimized approach)
3. Questions from your projects that you mentioned in your resume.

1. Puzzle

3 Ants and Triangle

Problem approach

Collision doesn’t happen only in following two cases : 
1) All ants move in counterclockwise direction.
2) All ants move in clockwise direction.


Since every ant has two choices (pick either of two edges going through the corner on which ant is initially sitting), there are total 23 possibilities.


Out of 23 possibilities, only 2 don’t cause collision. So, the probability of collision is 6/8 or 3/4 and the probability of non-collision is 2/8 or 1/4.

2. Longest Palindromic Substring

Moderate
20m average time
80% success
0/80
Asked in companies
SAP LabsAccentureOptum

You are given a string ('STR') of length 'N'. Find the longest palindromic substring. If there is more than one palindromic substring with the maximum length, return the one with the smaller start index.

Note:
A substring is a contiguous segment of a string.

For example : The longest palindromic substring of "ababc" is "aba", since "aba" is a palindrome and it is the longest substring of length 3 which is a palindrome, there is another palindromic substring of length 3 is "bab" since "aba" starting index is less than "bab", so "aba" is the answer.

Problem approach

Step 1:- First I read the problem carefully
Step 2:- Then I wrote the code(Brute Force method)
Step 3:- Interviewer asked me to optimize the solution.
Step 4:- Then I gave the optimized solution(there is a simple logic behind the problem)

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

Which SQL clause is used to specify the conditions in a query?

Choose another skill to practice
Similar interview experiences
company logo
Graduate Engineer Trainee
1 rounds | 3 problems
Interviewed by Siemens
4518 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Siemens
1429 views
0 comments
0 upvotes
company logo
Software Engineer
1 rounds | 1 problems
Interviewed by Siemens
2067 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Siemens
2053 views
0 comments
0 upvotes