2481. Minimum Cuts to Divide a Circle
Easy
Previous2477. Minimum Fuel Cost to Report to the Capital ⭐Next2486. Append Characters to String to Make Subsequence
Last updated
Easy
Last updated
A valid cut in a circle can be:
A cut that is represented by a straight line that touches two points on the edge of the circle and passes through its center, or
A cut that is represented by a straight line that touches one point on the edge of the circle and its center.
Some valid and invalid cuts are shown in the figures below.
Given the integer n
, return the minimum number of cuts needed to divide a circle into n
equal slices.
Example 1:
Example 2:
Constraints:
1 <= n <= 100