<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KVGHS6G" height="0" width="0" style="display:none;visibility:hidden"></iframe>

Ramp数据相关面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(1)
SQL(0)
Coding(1)
ML basics(0)
Stats(0)
Product Case(0)
高频题(0)
Other(0)
全部(1)
SQL(0)
Coding(1)
ML basics(0)
Stats(0)
Product Case(0)
高频题(0)
Other(0)
1.Correcting Apartment Listings Data
1. Correcting Apartment Listings Data
Write a function to correct the num_bedrooms field in apartment listings data. The function should take jsonData as input and return an array of integers representing the corrected num_bedrooms values for each listing. Consider the following rules while correcting the data: - If 'studio' or '1-bedroom' is immediately preceded by 'yoga', 'dance', or 'art', do not consider it for num_bedrooms value. - If the description does not contain 'studio' or '1-bedroom', do not change the num_bedrooms value. - Apply the rules regardless of punctuation or letter casing in the description field. Provide an explanation for your solution and discuss its time and space complexity.