Concise 2 lines of Kotlin using Manhattan distance
\nclass Solution {\n    fun manhattan(a: IntArray, b: IntArray) =\n        Math.abs(a[0] - b[0]) + Math.abs(a[1] - b[1])\n\n    fun escapeGhosts(ghosts: Array<I
```\nclass Solution {\n    fun manhattan(a: IntArray, b: IntArray) =\n        Math.abs(a[0] - b[0]) + Math.abs(a[1] - b[1])\n\n    fun escapeGhosts(ghosts: Array<IntArray>, target: IntArray) =\n        manhattan(intArrayOf(0, 0), target) < ghosts.map { manhattan(it, target) }.min()!!\n}\n```
[]