Sigmoid R1 || GS Client || 10th May
- Posted
- 10 May 2025
Summary
I had an interview round with Sigmoid on May 10th which included questions on data structures & algorithms and Java/Spring core concepts.
How it went
Q1. Given an array arr[] of size N, find the smallest and second smallest element in an array.
Q2. Min Path Sum from Top Left to Bottom Right
Q3. Diff between String, StringBuilder and StringBuffer Q4. Why we need String in java if we have StringBuilder and StringBuffer Q5. Diff between SingletonClass in Java and Spring Q6. What to do when we need new bean each time not singleton object in spring ?
Questions asked (6)
- 01
Find Smallest and Second Smallest Element in Array
Data Structures & Algorithms · Easy
Given an array arr[] of size N, find the smallest and second smallest element in an array.
- 02
Minimum Path Sum
Data Structures & Algorithms · Medium
Min Path Sum from Top Left to Bottom Right
- 03
Difference between String, StringBuilder, and StringBuffer
Other
Diff between String, StringBuilder and StringBuffer
- 04
Need for String in Java vs StringBuilder/StringBuffer
Other
Why we need String in java if we have StringBuilder and StringBuffer
- 05
Difference between Singleton in Java and Spring
Other
Diff between SingletonClass in Java and Spring
- 06
Creating Non-Singleton Beans in Spring
Other
What to do when we need new bean each time not singleton object in spring ?