Top "Iteration" questions

Iterations are the successive repetitions in loops such as for, foreach or while.

C++ std::unordered_map complexity

I've read a lot about unordered_map (c++11) time-complexity here at stackoverflow, but I haven't found the answer for my …

c++ stl iteration time-complexity unordered-map
Jsoup - extracting text

I need to extract text from a node like this: <div> Some text <b>with tags&…

java iteration jsoup text-extraction
Iterate through CheckedListBox in WinForms?

If I have Checked list box in Win forms which I fill like this List<Tasks> tasks = db.…

c# winforms iteration checkedlistbox
Get every n-elements of array

How to select every n-elements (e.g. six) of an array using Ruby 1.9+? Example: a = [0, 1, 2, 3, 4, ... , 33] # solution # => [[0, 1, 2, 3, 4, 5], [6, 7, 8, 9, 10, 11], ... ]

arrays ruby iteration enumeration
How to think in recursive way?

In order to understand the advanced algorithm concepts like greedy methods and dynamic programming, one first need to be well …

string algorithm recursion iteration tail-recursion
Efficient way of iterating over true bits in std::bitset?

Is there a way of iterating over a (possibly huge) std::bitset that is linear in the number of bits …

c++ algorithm data-structures iteration bitset
how to write iterative algorithm for generate all subsets of a set?

I wrote recursive backtracking algorithm for finding all subsets of a given set. void backtracke(int* a, int k, int …

algorithm recursion set iteration recursive-backtracking
Python - Any way to avoid several if-statements inside each other in a for-loop?

I need a better way to do this. I'm new with programming but I know that this is a very …

python for-loop comparison iteration list-comparison
Unsigned int reverse iteration with for loops

I want the iterator variable in a for loop to reverse iterate to 0 as an unsigned int, and I cannot …

c++ loops for-loop overflow iteration
How can I iterate through a Guava multimap to print out values as pairs

For each key in a Guava Multimap I need to take the corresponding values and make pairs with them that …

java iteration guava multimap