We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd189f6 commit 68de56dCopy full SHA for 68de56d
src/main/java/g2601_2700/s2678_number_of_senior_citizens/Solution.java
@@ -6,8 +6,8 @@ public class Solution {
6
public int countSeniors(String[] details) {
7
int count = 0;
8
for (String detail : details) {
9
- if ((detail.charAt(11) - '0' == 6 && detail.charAt(12) - '0' > 0)
10
- || detail.charAt(11) - '0' > 6) {
+ if (detail.charAt(11) - '0' == 6 && detail.charAt(12) - '0' > 0
+ || detail.charAt(11) - '0' > 6) {
11
count++;
12
}
13
0 commit comments