Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Issue 2604933002: Add treap ascending Iterators. (Closed)

Created:
3 years, 12 months ago by dnj
Modified:
3 years, 11 months ago
Reviewers:
Vadim Sh., iannucci, hinoka
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add treap ascending Iterators. Add ascending iterators. An Iterator retains a reference to a Treap and returns successive values. It functions identically to VisitItemsAscend, save that it retains its iteration state and can be invoked iteratively.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Avoid stack for nil left node case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -38 lines) Patch
M treap.go View 1 2 chunks +81 lines, -0 lines 0 comments Download
M treap_test.go View 5 chunks +77 lines, -38 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
dnj
PTAL. This is part of a series of patches that I created today. For context ...
3 years, 12 months ago (2016-12-27 23:50:35 UTC) #3
Vadim Sh.
lgtm with optional suggestion https://codereview.chromium.org/2604933002/diff/1/treap.go File treap.go (right): https://codereview.chromium.org/2604933002/diff/1/treap.go#newcode221 treap.go:221: func (it *Iterator) Next() (Item, ...
3 years, 12 months ago (2016-12-28 01:44:14 UTC) #4
dnj
https://codereview.chromium.org/2604933002/diff/1/treap.go File treap.go (right): https://codereview.chromium.org/2604933002/diff/1/treap.go#newcode221 treap.go:221: func (it *Iterator) Next() (Item, bool) { On 2016/12/28 ...
3 years, 11 months ago (2016-12-28 02:40:03 UTC) #5
dnj
> The thing that really turned me off from that is that the current implementation ...
3 years, 11 months ago (2016-12-28 02:46:36 UTC) #6
Vadim Sh.
On 2016/12/28 02:46:36, dnj wrote: > > The thing that really turned me off from ...
3 years, 11 months ago (2016-12-28 09:00:30 UTC) #7
dnj
On 2016/12/28 09:00:30, Vadim Sh. wrote: > On 2016/12/28 02:46:36, dnj wrote: > > > ...
3 years, 11 months ago (2016-12-28 16:03:13 UTC) #8
dnj
3 years, 11 months ago (2016-12-28 16:33:32 UTC) #9

Powered by Google App Engine
This is Rietveld 408576698