---
# System prepended metadata

title: 2833. Furthest Point From Origin
tags: [Leetcode, Easy, Math]

---

Link: https://leetcode.com/problems/furthest-point-from-origin/
## Code
```python=
class Solution:
    def furthestDistanceFromOrigin(self, moves: str) -> int:
        leftCnt = moves.count('L')
        rightCnt = moves.count('R')
        return len(moves)-2*(min(leftCnt, rightCnt))
```