Swift Array Programming Exercises: Test if the number of 1's is greater than the number of 3's of a given array of integers
Write a Swift program to test if the number of 1's is greater than the number of 3's of a given array of integers.
Pictorial Presentation:

Sample Solution:
Swift Code:
Sample Output:
true false false
Swift Programming Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a Swift program to check if a given array of integers contains a 3 next to a 3 somewhere.
Next: Write a Swift program to test if every element is a 2 or a 5 of a given array of integers.
What is the difficulty level of this exercise?
Based on 272 votes, average difficulty level of this exercise is Medium
.