Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Maximum Population Year
Bookmark
Brute Force
Line Sweep
Input
No Overlap
Chained
Stacked
Back to Back
Custom
logs
=
[[1993,1999],[2000,2010]]
people
pop
1950
2050
people
pop
1950
2050
pop =
0
max =
0
people
pop
1950
1960
2050
year 1960:
0
alive
pop =
0
max =
0
people
pop
1950
1972
2050
year 1972:
0
alive
pop =
0
max =
0
people
pop
1950
1983
2050
year 1983:
0
alive
pop =
1
max =
1
@
1993
people
pop
1950
1993
2050
year 1994:
1
alive
pop =
1
max =
1
@
1993
people
pop
1950
1993
2006
2050
year 2006:
1
alive
pop =
0
max =
1
@
1993
people
pop
1950
1993
2017
2050
year 2017:
0
alive
pop =
0
max =
1
@
1993
people
pop
1950
1993
2028
2050
year 2028:
0
alive
pop =
0
max =
1
@
1993
people
pop
1950
1993
2040
2050
year 2040:
0
alive
pop =
0
max =
1
@
1993
people
pop
1950
1993
2050
Year
1993
, population
1
algo
master
.
io
Step:
Start: 2 people, check every year from 1950 to 2050
0 / 102
Input
No Overlap
Chained
Stacked
Back to Back
Custom
logs
=
[[1993,1999],[2000,2010]]
0 / 102
algo
master
.
io
Step:
Start: 2 people, check every year from 1950 to 2050