8000 collections.1 : Show mutation in longestJourneyIn · java-to-kotlin/code@09fda1c · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 09fda1c

Browse files
Duncan McGregordmcg
authored andcommitted
collections.1 : Show mutation in longestJourneyIn
1 parent 7b96e63 commit 09fda1c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/travelator/Suffering.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
public class Suffering {
1111

1212
public static int sufferScoreFor(List<Journey> route) {
13-
Location start = getDepartsFrom(route);
1413
List<Journey> longestJourneys = longestJourneysIn(route, 3);
15-
return sufferScore(longestJourneys, start);
14+
return sufferScore(longestJourneys, getDepartsFrom(route));
1615
}
1716

1817
public static List<Journey> longestJourneysIn(

0 commit comments

Comments
 (0)
0