Yandex Interview Questions

Yandex Interview Guides

Click or hover over a slice to explore questions for that topic.
Data Structures & Algorithms
(97)
SQL
(66)
Machine Learning
(57)
Product Sense & Metrics
(46)
Probability
(41)

Yandex Interview Questions

Practice for the Yandex interview with these recently asked interview questions.

QuestionTopicDifficulty
Data Structures & Algorithms
Medium

Write a Python function called group_anagrams that takes a list of strings as input and returns a list of lists, where each inner list contains a group of anagrams that were present in the input list.

An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, using all the original letters exactly once.

Note: Each of the inner lists should be ordered alphabetically and contain no duplicate values

Example:

Input:

words = ["eat", "tea", "tan", "ate", "nat", "bat"]

Output:

[  
  ["nat","tan"],
  ["ate","eat", "tea"],
  ["bat"]
]

Explanation:

In the example, the words “eat”, “tea”, and “ate” are anagrams of each other, as are the words “tan” and “nat”. The word “bat” does not have any anagrams in the input list, and therefore is listed on its own. The function then groups the anagrams together and returns a list of lists representing these groups.

Each of the lists representing a group of anagrams is sorted in alphabetical order.

Probability
Medium
Data Structures & Algorithms
Medium
Loading pricing options

View all Yandex questions

Challenge

Check your skills...
How prepared are you for working at Yandex?

Yandex Salaries by Position

Data Scientist*
$51K
Data Scientist
Median: $51K
Mean (Average): $51K
Data points: 1
Product Manager*
$46K
$56K
Product Manager
Median: $51K
Mean (Average): $51K
Data points: 2
$41K
$57K
Software Engineer
Median: $47K
Mean (Average): $48K
Data points: 62
ML Engineer*
$45K
$46K
ML Engineer
Median: $46K
Mean (Average): $46K
Data points: 2

Most data science positions fall under different position titles depending on the actual role.

From the graph we can see that on average the Data Scientist role pays the most with a $51,000 base salary while the ML Engineer role on average pays the least with a $45,750 base salary.

Discussion & Interview Experiences

?
There are no comments yet. Start the conversation by leaving a comment.