LeetCode Question · Mar 2019 · USA

Facebook | Phone screen | Leftmost column of 1 & LCA in a graph

9 upvotes 2,636 views 9 replies

Question Details

Question 1: Leftmost column index of 1 <details> <summary>My solution:</summary> def find_lefmost_index_of_one(matrix): if not matrix and not matrix[0]: return -1 left, right = 0, len(matrix[0]) - 1 index = -1 ...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Graph Matrix Queue Stack