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

Gartner计算机科学面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(1)
OOD(0)
Algorithm(0)
System Design(0)
高频题(0)
Math(0)
全部(1)
OOD(0)
Algorithm(0)
System Design(0)
高频题(0)
Math(0)
1.Find the 10 Closest Words in a Vocabulary List
1. Find the 10 Closest Words in a Vocabulary List
Given a vocabulary list from NLTK, write a Python program to find the 10 words closest to an input string. The interviewer will provide you with the probabilities of these words, which you can assign using numpy random. Then, select the 10 words with the highest probabilities and remember to use the sorted function. Finally, discuss the time complexity of your solution.