We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64f4426 commit e26ff97Copy full SHA for e26ff97
solution/2600-2699/2678.Number of Senior Citizens/README.md
@@ -167,6 +167,12 @@ function countSeniors(details: string[]): number {
167
}
168
```
169
170
+```ts
171
+function countSeniors(details: string[]): number {
172
+ return details.filter(v => parseInt(v.slice(11, 13)) > 60).length;
173
+}
174
+```
175
+
176
### **...**
177
178
solution/2600-2699/2678.Number of Senior Citizens/README_EN.md
@@ -157,6 +157,12 @@ function countSeniors(details: string[]): number {
157
158
159
160
161
162
163
164
165
166
0 commit comments