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 802ee1b commit 494eb99Copy full SHA for 494eb99
Array-2/only14.java
@@ -0,0 +1,6 @@
1
+public boolean only14(int[] nums) {
2
+ for(int x : nums)
3
+ if(x != 1 && x != 4)
4
+ return false;
5
+ return true;
6
+}
0 commit comments