0818. Race Car
Description
**Input:** target = 3
**Output:** 2
**Explanation:**
The shortest instruction sequence is "AA".
Your position goes from 0 --> 1 --> 3.ac
Last updated
**Input:** target = 3
**Output:** 2
**Explanation:**
The shortest instruction sequence is "AA".
Your position goes from 0 --> 1 --> 3.Last updated
**Input:** target = 6
**Output:** 5
**Explanation:**
The shortest instruction sequence is "AAARA".
Your position goes from 0 --> 1 --> 3 --> 7 --> 7 --> 6.