In an unprecedented turn of events, a tourist in China was left dangling 100 metres in the air after high winds struct and shattered the glass bridge he was walking on. Fortunately, the police ...
- Task: Find the longest common prefix string amongst an array of strings. - Approach: Sorting & Extremes Method 1. Sorting: Sort the array lexicographically. This puts the most "different" strings at ...