One retweet — one technical question.
Categories: SQL, coding (Python) and algorithms
Let’s start!
#100DaysOfMLCode #100DaysOfPythonCode
- The number of active ads
Simple questions to check if a candidate can implement an idea in Python and knows the basics: loops, strings, basic data structures (lists, sets, dictionaries)
E.g. 10! = 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10 = 3628800
[1, 2, 3, 1] ⇒ [1, 2, 3]
[1, 3, 2, 1, 5, 3, 5, 1, 4] ⇒ [1, 3, 2, 5, 4]
“reverse” ⇒ “esrever”
0 ⇒ 0
123 ⇒ 321
“ololo” ⇒ Yes
“cafe” ⇒ No
12321 ⇒ Yes
123 ⇒ No
“aaaabbbcca” ⇒ [(‘a’, 4), (‘b’, 3), (‘c’, 2), (‘a’, 1)]
(note that there are two groups of a)
The questions in this category are different from the previous one. Some of them are brain teasers, some of them require using recursion, knowing algorithms and data structures.
[1, 2, 3, 4], 5 ⇒ True
[3, 4, 6], 6 ⇒ False
6, 6 ⇒ [7]
2, 4 ⇒ [3, 4, 5]
a -> b -> c ⇒ c -> b -> a
[1, 4, 6, 10], 4 ⇒ 1
[1, 4, 6, 10], 3 ⇒ -1
[1, 1, 1, 2, 3, 4, 4, 4, 5, 6, 6] ⇒ [1, 2, 3, 4, 5, 6]
[1, 2, 4, 6, 10], [2, 4, 5, 7, 10] ⇒ [2, 4, 10]
[1, 2, 4, 6, 10], [2, 4, 5, 7, 10] ⇒ [1, 2, 4, 5, 6, 7, 10]
12 is [1, 2]
1000 is [1, 0, 0, 0]
Implement the “+” operation for this representation
[1, 1] + [1] ⇒ [1, 2]
[9, 9] + [2] ⇒ [1, 0, 1]
To prepare, use resources like LeetCode and practice a lot. You can check my solutions to some of LeetCode challenges here: github.com/alexeygrigorev…
On the other hand, if you interview for software engineer or ML engineer positions, you’re more likely to get them.
Check with your recruiter if you need to prepare for it.