Skip to content

Commit

Permalink
day 114: add comments about runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskoz committed Dec 15, 2018
1 parent 43eec84 commit 47b47d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions day114/problem.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "strings"
// ReverseWordsMaintainDelimters reverses the words in the string
// while maintaining the relative order of the delimiters
// Works only with two delimiters "/" or ":"
// Runs in O(N) time and requires O(N) extra space to construct the result.
func ReverseWordsMaintainDelimters(str string) string {
var start, end int
var words []string
Expand Down

0 comments on commit 47b47d6

Please sign in to comment.