Add office photos
Raja Software Labs logo
Employer?
Claim Account for FREE

Raja Software Labs

3.5
based on 97 Reviews
Filter interviews by
Software Developer
Fresher
Skills
Clear (1)

10+ Raja Software Labs Software Developer Interview Questions and Answers

Updated 26 Sep 2024

Q1. 1 print string without taking repeating characters eg helper - helpr

Ans.

The task is to print a string without any repeating characters.

  • Iterate through the string and keep track of the characters seen so far.

  • If a character is already seen, skip it.

  • Otherwise, add it to the output string.

  • Return the output string.

View 1 answer
right arrow

Q2. angle between hour and minute hand of clock at a given time

Ans.

The angle between hour and minute hand of a clock at a given time.

  • Calculate the angle made by the hour hand with 12 o'clock

  • Calculate the angle made by the minute hand with 12 o'clock

  • Find the difference between the two angles

  • If the difference is greater than 180 degrees, subtract it from 360 degrees

  • The result is the angle between the hour and minute hand

Add your answer
right arrow
Raja Software Labs Software Developer Interview Questions and Answers for Freshers
illustration image

Q3. 2 given sum and we have to print all the subsequences in array with given sum

Ans.

Printing all the subsequences in an array with a given sum.

  • Use recursion to generate all possible subsequences.

  • Check if the sum of each subsequence is equal to the given sum.

  • Print the subsequences that satisfy the condition.

  • Time complexity: O(2^n).

Add your answer
right arrow

Q4. 2 sort array of 0s and 1s in only one loop solution was using two pointers

Ans.

Sort an array of 0s and 1s in one loop using two pointers.

  • Use two pointers, one starting from the beginning and the other from the end.

  • Swap the values at the pointers if the value at the beginning pointer is greater than the value at the end pointer.

  • Continue until the pointers meet in the middle.

  • Time complexity is O(n).

View 1 answer
right arrow
Discover Raja Software Labs interview dos and don'ts from real experiences

Q5. Occurance of characters in string

Ans.

The question is about finding the occurrence of characters in a string.

  • Iterate through the string and count the occurrence of each character.

  • Use a hash table to store the count of each character.

  • Consider the case sensitivity of the characters.

  • Handle special characters and spaces as required.

View 1 answer
right arrow

Q6. Find the minimum number of coins to make a given value. (Coin Change)

Ans.

Find minimum number of coins to make a given value using dynamic programming.

  • Use dynamic programming to find the minimum number of coins needed.

  • Create a dp array to store the minimum number of coins for each value up to the given value.

  • Iterate through each coin denomination and update the dp array accordingly.

  • Return the value at the given value index in the dp array.

Add your answer
right arrow
Are these interview questions helpful?

Q7. First non repeating character in a string

Ans.

Find the first non-repeating character in a string.

  • Create a hash table to store character frequency

  • Iterate through the string and update the hash table

  • Iterate through the string again and return the first character with frequency 1

Add your answer
right arrow

Q8. Longest substring pallandrome in a string

Ans.

Find the longest substring that is a palindrome in a given string.

  • Use dynamic programming to solve the problem efficiently.

  • Create a 2D boolean array to store the results of subproblems.

  • Check for palindromes of length 1 and 2 separately.

  • For substrings of length greater than 2, check if the first and last characters are the same and the substring between them is also a palindrome.

  • Update the result if a longer palindrome is found.

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. Second Maximum Number in Array

Ans.

Find the second maximum number in an array of strings.

  • Convert the array of strings to an array of integers.

  • Sort the array in descending order.

  • Return the second element in the sorted array.

Add your answer
right arrow

Q10. find prime numbers value.

Ans.

A prime number is a number greater than 1 that is divisible only by 1 and itself.

  • Start with a loop to iterate through numbers

  • Check if each number is divisible by any number from 2 to its square root

  • If not divisible, add it to the list of prime numbers

View 1 answer
right arrow

Q11. nearest Prime number

Ans.

To find the nearest prime number, iterate from the given number in both directions until a prime number is found.

  • Start iterating from the given number in both directions to find the nearest prime number.

  • Check if a number is prime by dividing it by all numbers less than its square root.

  • Keep track of the closest prime number found during the iteration.

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

Interview Process at Raja Software Labs Software Developer

based on 14 interviews
3 Interview rounds
Aptitude Test Round
Coding Test Round
Technical Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

Flipkart Logo
4.0
 • 81 Interview Questions
Qualcomm Logo
3.8
 • 11 Interview Questions
View all
Recently Viewed
INTERVIEWS
Infollion Research Services
No Interviews
INTERVIEWS
Infollion Research Services
No Interviews
INTERVIEWS
Infosys Public Services
No Interviews
INTERVIEWS
Infollion Research Services
No Interviews
INTERVIEWS
MAHLE ANAND Filter Systems
No Interviews
INTERVIEWS
Infollion Research Services
No Interviews
INTERVIEWS
Infollion Research Services
No Interviews
INTERVIEWS
Raja Software Labs
No Interviews
INTERVIEWS
Magna International
No Interviews
INTERVIEWS
Mirabel Technologies
5.6k top interview questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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