@@ -45,7 +45,7 @@ int main() {
45
45
// that must be lying given that Bessie is at the position of cow i.
46
46
vector<int > lying_left(n);
47
47
for (int i = 1; i < n; i++) {
48
- // Add up all the cows that are lying to the left of our pos .
48
+ // Add up all the cows that are lying to the left of our position .
49
49
lying_left [i ] += lying_left [i - 1 ];
50
50
51
51
if (cows [i - 1 ].second == ' L' && cows [i ].first >= cows [i - 1 ].first ) {
@@ -124,7 +124,7 @@ public class CountingLiars {
124
124
// that must be lying given that Bessie is at the position of cow i.
125
125
int[] lying_left = new int[n ];
126
126
for (int i = 1; i < n; i++) {
127
- // Add up all the cows that are lying to the left of our pos .
127
+ // Add up all the cows that are lying to the left of our position .
128
128
lying_left[i ] += lying_left[i - 1 ];
129
129
130
130
if (cows[i - 1 ].statement == 'L' &&
@@ -185,7 +185,7 @@ cows.sort(key=lambda c: (c.pos, c.statement))
185
185
# that must be lying given that Bessie is at the position of cow i.
186
186
lying_left = [0 for _ in range (n )]
187
187
for i in range(1, n):
188
- # Add up all the cows that are lying to the left of our pos .
188
+ # Add up all the cows that are lying to the left of our position .
189
189
lying_left [i ] += lying_left [i - 1 ]
190
190
191
191
if cows [i - 1 ].statement == " L" and cows [i ].pos >= cows [i - 1 ].pos :
0 commit comments