Sigmoid R1 || GS Client || 10th May
Summary
I had an interview round with Sigmoid on May 10th which included questions on data structures & algorithms and Java/Spring core concepts.
Full Experience
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 ?
Interview Questions (6)
Find Smallest and Second Smallest Element in Array
Given an array arr[] of size N, find the smallest and second smallest element in an array.
Minimum Path Sum
Min Path Sum from Top Left to Bottom Right
Difference between String, StringBuilder, and StringBuffer
Diff between String, StringBuilder and StringBuffer
Need for String in Java vs StringBuilder/StringBuffer
Why we need String in java if we have StringBuilder and StringBuffer
Difference between Singleton in Java and Spring
Diff between SingletonClass in Java and Spring
Creating Non-Singleton Beans in Spring
What to do when we need new bean each time not singleton object in spring ?