Lamp Developer
Lamp Developer Interview Questions and Answers
Q1. A hash function was written to convert a string into a hash. Write a un-hash function to revert it(from hash to string)?
Use a reverse algorithm to convert the hash back to the original string.
Identify the algorithm used to create the hash
Create a reverse algorithm to undo the hash function
Apply the reverse algorithm to the hash to get the original string
Q2. Find angle between hour hand and minute hand in clock if time is given? Write a program or pseudo code?
Calculate angle between hour and minute hand of a clock given time
Calculate hour hand angle based on current hour and minute
Calculate minute hand angle based on current minute
Calculate absolute difference between two angles
Return smaller angle between two angles
Q3. Puzzle – 25 horses – 5 lanes, find fastest 3 horses?
25 horses race in 5 lanes, find fastest 3 horses.
Divide horses into 5 groups of 5 horses each.
Conduct 5 races with each group of horses.
Take the top 3 horses from each race and conduct a final race to determine the fastest 3 horses.
Q4. Write a regex for email validation?
Regex for email validation
Start with a string of characters followed by '@' symbol
Followed by a string of characters, numbers, hyphens, or dots
End with a string of characters, a dot, and a 2-6 letter TLD
Lamp Developer Jobs
Interview Questions of Similar Designations
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month