Add office photos
LimeRoad logo
Employer?
Claim Account for FREE

LimeRoad

2.6
based on 128 Reviews

LimeRoad Interview Questions and Answers

Updated 5 Feb 2024

Q1. Word Ladder Problem Statement

Given two strings, BEGIN and END, along with an array of strings DICT, determine the length of the shortest transformation sequence from BEGIN to END. Each transformation involves ...read more

Ans.

The Word Ladder problem involves finding the shortest transformation sequence from one word to another by changing one letter at a time.

  • Use breadth-first search to find the shortest transformation sequence.

  • Create a graph where each word is a node and words that can be transformed into each other are connected.

  • Keep track of visited words to avoid cycles and optimize the search process.

  • Return -1 if no transformation sequence is possible.

  • Example: For input 'hit', 'cog', and dict...read more

Add your answer
right arrow

Q2. Buy and Sell Stock - III Problem Statement

Given an array prices where the ith element represents the price of a stock on the ith day, your task is to determine the maximum profit that can be achieved at the en...read more

Ans.

Determine the maximum profit that can be achieved by selling stocks with at most two transactions.

  • Iterate through the array and calculate the maximum profit that can be achieved by selling stocks at each day.

  • Keep track of the maximum profit after the first transaction and the maximum profit after the second transaction.

  • Return the maximum profit that can be achieved overall.

Add your answer
right arrow

Q3. Group Anagrams Problem Statement

Given an array or list of strings called inputStr, your task is to return the strings grouped as anagrams. Each group should contain strings that are anagrams of one another.

An...read more

Ans.

Group anagrams in an array of strings based on their characters.

  • Iterate through each string in the input array

  • Sort the characters of each string and use the sorted string as a key in a hashmap to group anagrams

  • Return the values of the hashmap as the grouped anagrams

Add your answer
right arrow

Q4. Problem: Ninja's Robot

The Ninja has a robot which navigates an infinite number line starting at position 0 with an initial speed of +1. The robot follows a set of instructions which includes ‘A’ (Accelerate) a...read more

Ans.

Determine the minimum length of instruction sequence for a robot to reach a given target on an infinite number line.

  • Start at position 0 with speed +1, update position and speed based on 'A' and 'R' instructions

  • For each test case, find the shortest sequence of instructions to reach the target

  • Consider both positive and negative positions for the robot

  • Return the minimum length of instruction sequence for each test case

Add your answer
right arrow
Discover LimeRoad interview dos and don'ts from real experiences

Q5. Valid Parentheses Problem Statement

Given a string 'STR' consisting solely of the characters “{”, “}”, “(”, “)”, “[” and “]”, determine if the parentheses are balanced.

Input:

The first line contains an integer...read more
Ans.

The task is to determine if a given string of parentheses is balanced or not.

  • Iterate through each character in the string and use a stack to keep track of opening parentheses

  • If a closing parenthesis is encountered, check if it matches the top of the stack. If not, the string is not balanced

  • If all parentheses are matched correctly and the stack is empty at the end, the string is balanced

Add your answer
right arrow

Q6. check the garment made tax report

Ans.

The garment tax report needs to be checked.

  • Review the garment tax report for accuracy and completeness.

  • Ensure that all tax calculations are correct.

  • Verify that the report includes all necessary information, such as tax rates and applicable exemptions.

  • Cross-check the report with relevant documentation, such as invoices and receipts.

  • Identify any discrepancies or errors and take appropriate actions to rectify them.

Add your answer
right arrow

Q7. Subset sum to k

Ans.

Given an array of integers, determine if there is a subset that sums up to a given target value.

  • Use a recursive approach to explore all possible subsets

  • At each step, either include the current element or exclude it

  • If the target value is reached, return true

  • If all elements are exhausted and the target value is not reached, return false

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 LimeRoad

based on 7 interviews
Interview experience
4.0
Good
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

Teleperformance Logo
3.9
 • 541 Interview Questions
Episource Logo
3.9
 • 209 Interview Questions
ITC Infotech  Logo
3.6
 • 204 Interview Questions
HDB Financial Services Logo
3.9
 • 198 Interview Questions
iEnergizer Logo
4.6
 • 159 Interview Questions
Alstom Transportation Logo
3.7
 • 140 Interview Questions
View all
Recently Viewed
REVIEWS
D A V School
No Reviews
SALARIES
Voonik
SALARIES
ExcelR
DESIGNATION
REVIEWS
Praxis Business School
No Reviews
SALARIES
ExcelR
INTERVIEWS
LimeRoad
No Interviews
INTERVIEWS
LimeRoad
No Interviews
REVIEWS
Praxis Business School
No Reviews
SALARIES
ExcelR
Top LimeRoad Interview Questions And Answers
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