Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added new lines at end of files
  • Loading branch information
sumanth-botlagunta committed Mar 19, 2023
commit 4ab29f1089388bad47876a5ed6196f9af2439c5b
1 change: 0 additions & 1 deletion python/design_add_and_search_words_data_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ def dfs(j, root):
curr = curr.children[ch]
return curr.word
return dfs(0, self.root)

2 changes: 1 addition & 1 deletion python/design_browser_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ def back(self, steps: int) -> str:

def forward(self, steps: int) -> str:
self.ptr = min(len(self.history) - 1, self.ptr + steps)
return self.history[self.ptr]
return self.history[self.ptr]
2 changes: 1 addition & 1 deletion src/DesignBrowserHistory.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ public String forward(int steps) {
this.ptr = Math.min(this.history.size() - 1, this.ptr + steps);
return this.history.get(this.ptr);
}
}
}