Zoox计算机科学面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(2)
OOD(2)
Algorithm(0)
System Design(0)
高频题(0)
Math(0)
全部(2)
OOD(2)
Algorithm(0)
System Design(0)
高频题(0)
Math(0)
1.Roller Coaster Rating Calculator
2.Explain Polymorphism and Inheritance
1. Roller Coaster Rating Calculator
Design an object-oriented system for a roller coaster rating calculator. The input should be a list where each entry represents a roller coaster and contains attributes such as type, speed, and bumpiness. Provide specific formulas for calculating the ratings of different types of roller coasters, taking into account that each attribute may have different weights or that certain conditions may add a bonus score.
2. Explain Polymorphism and Inheritance
Can you explain the concepts of polymorphism and inheritance in object-oriented programming? Additionally, how would you determine if two variables are equal in JavaScript?