Skip to main content

Timeline for Finding Local Extremes

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited CommunityBot
Commonmark migration
Feb 27, 2014 at 16:48 history edited user10766 CC BY-SA 3.0
added 14 characters in body
Feb 27, 2014 at 16:39 history edited user10766 CC BY-SA 3.0
Golf more
Feb 27, 2014 at 10:04 comment added Morwenn Finally, you can probably get get rid of the increment i++ in your for loop and begin your condition by if(v[++i]>[i-1]... in order to gain one character again.
Feb 27, 2014 at 10:02 comment added Morwenn Also, instead of using i and j, you can declare int i; right after the collection and use in is the two loops instead of declaring two variables.
Feb 27, 2014 at 10:01 comment added Morwenn You can use a deque instead of a vector to gain 2 characters.
Feb 26, 2014 at 23:16 history edited Victor Stafusa CC BY-SA 3.0
Syntax coloring
Feb 26, 2014 at 23:11 history answered user10766 CC BY-SA 3.0