Add office photos
Employer?
Claim Account for FREE

Freshworks

3.5
based on 659 Reviews
Filter interviews by

10+ SRBP & Associates Interview Questions and Answers

Updated 9 Oct 2024
Popular Designations
Q1. Square root (decimal)

You have been given two integers 'N' and 'D', Your task is to find the square root of the number 'N' with precision up to 'D' decimal places i.e. the difference between your answer and the ...read more

View 2 more answers
Q2. Longest Unique Substring

Given a string input of length n, find the length of the longest substring without repeating characters i.e return a substring that does not have any repeating characters.

Substring is t...read more

View 2 more answers
Q3. Vertical Order Traversal

The Ultimate Ninja Ankush is a straightforward, no-nonsense guy and loves binary Trees, and he has given you a binary tree, and you have to return the vertical order traversal of the val...read more

Add your answer
Q4. Zig-Zag Conversion

You are given a string ‘S’ and an integer ‘ROW’, convert the row into a zig-zag pattern with rows equal to ‘ROW’ and output it row-wise. You may refer to the example below to better understand...read more

Add your answer
Discover SRBP & Associates interview dos and don'ts from real experiences
Q5. Find power of a number

Write a program to find x to the power n (i.e., x^n). Take x and n from the user. You need to print the answer.

Note: For this question, you can assume that 0 raised to the power of 0 is 1...read more

Add your answer
Q6. System Design Question

Design online conference booking platform
User can see different conferences on online portal
User can see active conferences on online portal
User can go and register itself in one or multip...read more

Add your answer
Are these interview questions helpful?
Q7. Technical Questions

Scenario based questions
1. Like you have DB which is read heavy. What could be your approach to reduce DB calls
Answer: caching
2. How virtual memory works
3. Behavioral questions

Add your answer
Q8. System Design Question

Current project architecture

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Triplets in array of integers without duplicates

Ans.

Find all triplets in an array of integers without duplicates

  • Iterate through the array and for each element, find all pairs that sum up to the negative of that element

  • Use a set to store the seen elements to avoid duplicates

  • Time complexity can be improved to O(n^2) by sorting the array first

Add your answer

Q10. Find all square matrices in a given matrix

Ans.

To find all square matrices in a given matrix, iterate through each cell as the top left corner of a potential square matrix and check if all elements within the square are the same.

  • Iterate through each cell in the matrix as the top left corner of a potential square matrix

  • For each cell, check if all elements within the square formed by the cell are the same

  • If all elements are the same, consider it as a square matrix

Add your answer

Q11. Loop in a linked list and removing it

Ans.

Loop through the linked list to find and remove a specific node

  • Start at the head of the linked list and iterate through each node

  • Check if the current node matches the one to be removed

  • If found, update the pointers to skip over the node and remove it

  • Continue until the end of the list is reached

Add your answer

Q12. Elevator travel, find the no. of hops

Ans.

The question is asking to calculate the number of hops an elevator needs to travel between floors.

  • Calculate the difference between the starting floor and the destination floor

  • Divide the difference by the maximum number of floors the elevator can travel in one hop

  • Round up the result to get the number of hops needed

Add your answer

Q13. implement hashmap in java

Ans.

Implementing hashmap in Java

  • Create an array of linked lists to store key-value pairs

  • Hash the key to get the index of the array

  • Insert the key-value pair at the index in the linked list

  • Handle collisions by chaining

  • Implement methods like put(), get(), remove()

  • Use generics to allow any type of key-value pairs

Add your answer

Q14. Transactions in spring boot

Ans.

Transactions in Spring Boot manage database transactions in a declarative way.

  • Spring Boot uses @Transactional annotation to mark a method as transactional.

  • Transactions can be managed at class level or method level.

  • Rollback can be configured based on specific exceptions.

  • Example: @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)

Add your answer

Q15. Find max square in matrix

Ans.

Iterate through the matrix to find the largest square of 1s

  • Iterate through each cell in the matrix

  • For each cell, check if it is part of a square of 1s by checking the cells to the right, below, and diagonally right-down

  • Keep track of the size of the largest square found

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at SRBP & Associates

based on 6 interviews in the last 1 year
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Lead Software Engineer Interview Questions from Similar Companies

4.0
 • 16 Interview Questions
3.5
 • 11 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter