2833. Furthest Point From Origin
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```golang []
import "strings"

func furthestDistanceFromOrigin(moves string) int {

        copy1:= strings.ReplaceAll(moves, "_", "R")

        copy2:= strings.ReplaceAll(moves, "_", "L")

        // fmt.Println(copy1, copy2, moves)

        c1Distance := findDistance(copy1)
        c2Distance := findDistance(copy2)

        if c1Distance > c2Distance {
            return c1Distance
        }

        return c2Distance
    
}


func findDistance(s string) int {

    num :=0 

    for _, ele := range s {

        if ele == 'L' {
            num--

        }else if ele == 'R' {
            num++
        }
    }

    if num < 0 {
        num = -num
    }

    return num
}
```
['Go']