fromMedium
3 weeks agoData Engineer Interview Questions and Answers (4 Years Experience)
1. Scala Coding's Fibonacci Check Question: Write a Scala program to find out if a given number belongs to the Fibonacci series. If the response is yes, return that number. If not, return -1. Solution: For n = 7 → Output: -1 (7 is not in the Fibonacci series) For n = 8 → Output: 8 (8 is in the Fibonacci series)
Data science







