Technical Round-1(Tech Discussion) : (30 mins)
We started with our introductions. The interviewer was a senior developer at Spire. Then we jumped straight to problem-solving.
Problem1 (Easy): https://leetcode.com/problems/two-sum/description/
- First, explain the brute force.
- Then optimized it using hash maps and implemented it.
- Ran a few inputs and everything was perfect.
Problem2 (Medium): https://leetcode.com/problems/rotate-array/description/
- The question had a slight variation, was asked to right rotate than normal left rotation.
- The interviewer asked directly to code the optimized solution with O(n) time complexity and without using extra space.
- Gave the optimized solution. He asked to run a few inputs and everything worked perfectly.
- Then, he asked a question if rotations given become significantly large, then how to modify the solution.
- I explained it using the modulo operation. He seems satisfied with it.
By then it was almost 30 minutes, I thought he would conclude but he continued further asking questions on multiple things about the previous project and JAVA. Some of them I could remember are-
- What is REST?
- Is REST stateless or stateful? Why?
- What is the difference between monolithic and microservice-based applications?
- What advantage do we get if we use microservice-based architecture?
JAVA and OOP Questions-
- How to make class immutable?
- What is the final keyword? Why some methods are made final?
- What is method overloading and overriding? If the return type is different but the parameters are the same do will methods be called overloaded?
Then he asked me which design patterns were used in my project in my previous company – I said singleton, factory etc.
He asked me about the factory design pattern. What benefit does it provide?
At last, he asked me to explain the meaning of O and D in SOLID principles.
I could answer almost all of the questions, a few of which I could not, but he was kind enough to tell me. Our discussion went for around 1 hr 10 mins. Then he concluded by asking if I had any questions for him.
Feedback: Positive, Got shortlisted for the next round.
Spire Technologies Interview Experience For SDE 2024
Previous Position – Software Engineer II
Previous Organisation – Sabre
Location – Bengaluru, India
Years of Experience – 1.5 years of Experience
I applied through Naukri