Return root node given shuffled nodes - SWE Interview (with Principal Software Engineer)

  Рет қаралды 1,301

Exponent

Exponent

Күн бұрын

Пікірлер: 4
@JRoshanNaik
@JRoshanNaik Ай бұрын
Condition #3 seems to be redundant. If every node (excluding the root) has exactly 1 parent and there is exactly 1 root, then a cycle cannot exist because by definition a cycle contains 1 point with 2 parents.
@shiv-yt-317
@shiv-yt-317 Ай бұрын
This was beautiful! Proving your algo works with test cases is just the best thing any dev can and should do.
@rishiraj2548
@rishiraj2548 Ай бұрын
Thanks
@zwischenzug910
@zwischenzug910 Ай бұрын
this felt like a manager teaching its subordinate, lmao!
8-Digit Palindrome Problem (with Google engineer)
26:10
Exponent
Рет қаралды 1,1 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
15 Years of Software Engineer Knowledge in 1 hour 30 mins
1:30:39
Rahul Pandey
Рет қаралды 76 М.
Negotiating settlement agreements   employee
7:57
Refreshing Law Limited
Рет қаралды 15 М.
Medium Google Coding Interview With Ben Awad
51:27
Clément Mihailescu
Рет қаралды 1,3 МЛН
System Design Interview: Design Amazon Prime Video
26:53
Exponent
Рет қаралды 111 М.
Airbnb Data Warehouse Schema - Data Engineering Mock Interview
43:50
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН