Skip to main content

All Questions

Tagged with or
1 vote
0 answers
56 views

(See the previous iteration here.) This time, I have incorporated the answer from YawarRaza7349. Now, my code looks like this: ...
coderodde's user avatar
  • 32.3k
3 votes
3 answers
228 views

(See the next iteration here.) (See the previous iteration here.) This time, I have incorporated a nice answer from Simon Forsberg. Now, my code looks like this: ...
coderodde's user avatar
  • 32.3k
1 vote
1 answer
66 views

(See the previous iteration here.) (See the next iteration here.) This time, I improved the iterator such that there is no chance of numeric overflow when computing the total number of iterations. To ...
coderodde's user avatar
  • 32.3k
4 votes
1 answer
91 views

(See the next iteration here.) Intro This time, I have an Iterator<List<Integer>> implementation that generates list index tuples in lexicographic order....
coderodde's user avatar
  • 32.3k
6 votes
2 answers
84 views

In different code bases I regularly encounter tree data structures of different design and usually need to traverse it at some point. I finally got tired of writing yet another iterative traversal by ...
besc's user avatar
  • 163
3 votes
1 answer
137 views

I have an object graph which contains two types of objects that I care about: Link objects that contain an ID and a reference to the object with that ID. ...
ScottishTapWater's user avatar
5 votes
1 answer
182 views

I am trying to implement an odometer in Rust. This should a be an iterator that yields items of type [u16; N] and it should be generic over const ...
RBF06's user avatar
  • 153
2 votes
3 answers
146 views

I wrote a Vector (dynamic array) class with an iterator usable with std::sort() . It seems to pass my tests. I wondering about the issues one can spot on this ...
KcFnMi's user avatar
  • 139
3 votes
0 answers
502 views

After spending a considerable amount of time poking at the internals of the Collection class, I have discovered 2 methods to iterate a private internal array within ...
Cristian Buse's user avatar
1 vote
1 answer
405 views

I read data from Excel into a Pandas DataFrame, so that every column represents a different variable, and every row represents a different sample. I made the function below to identify potential ...
Pimsel's user avatar
  • 25
4 votes
3 answers
193 views

I'm learning Rust by solving ProjectEuler problems. To this end, I am trying to port a solution to problem 88 (link) in Python that heavily relies on generators to Rust (which doesn't have generators)....
Bram's user avatar
  • 93
0 votes
1 answer
123 views

I want to extend generic iterators with a convenience function until() that works like an inversion of take_while(). Here is the ...
user avatar
4 votes
2 answers
202 views

The tricky thing was keeping copies of list iterators in a tree map and managing both together. I'm not handling invalid input cases (like popping an empty stack) in this code. I am following Google C+...
user267704's user avatar
3 votes
2 answers
975 views

I have this Python Package called ToTemp under development for precise Temperature Conversions and currently thinking in changing the method's implementation to be ...
eddyxide's user avatar
  • 141
4 votes
2 answers
578 views

I wanted to play with a two-dimensional generic data container in C++ and explore different methods of traversals: using closures and iterators. I'd like a review of it. ...
nowox's user avatar
  • 1,121

15 30 50 per page
1
2 3 4 5
29