We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6f5241 commit 15b9075Copy full SHA for 15b9075
Easy/Minimum Cuts to Divide a Circle.java
@@ -0,0 +1,5 @@
1
+class Solution {
2
+ public int numberOfCuts(int n) {
3
+ return n == 1 ? 0 : (n % 2 == 0 ? n / 2 : n);
4
+ }
5
+}
0 commit comments