Top "Nested-loops" questions

A logical structure used in computer programming where two or more repeating statements are placed in a "nested" form (i.e., one loop is situated within the body of another).

How to loop in Ansible $var number of times?

I want to run a loop in Ansible the number of times which is defined in a variable. Is this …

loops dictionary ansible nested-loops
Two loops nested inside another loop in x86 assembly

I've got a problem looping in assembly language. When we want to use the counter register for looping in nested …

loops assembly nested-loops tasm
A big loop within a small loop always faster than a small loop within a big one?

I just read this post, and wonder if we can draw the conclusion that a big loop within a small …

c++ performance loops nested-loops
Parallelize these nested for loops in python

I have a multidimensional array (result) that should be filled by some nested loops. Function fun() is a complex and …

python parallel-processing nested-loops multiprocess
Variable amount of nested for loops

Edit: I'm sorry, but I forgot to mention that I'll need the values of the counter variables. So making one …

javascript nested-loops combinatorics
Big O for 3 nested loops

Another Big O notation question...What is the Big O for the folling code: for (int i = n; i > 0; …

java loops big-o nested-loops
How to make a IEnumerable method parallel method

Following to this post, I want parallelize this method : public IEnumerable<string> GetAllLogs(IEnumerable<IComputer> computers) { …

c# nested-loops parallel-processing
Alternatives to nested ifelse statements in R

Suppose we have the following data. The rows represent a country and the columns (in05:in09) indicate whether that country …

r loops if-statement nested-loops
Java Lambda Expression for Nested Loops with Conditional

I am new to lambda expressions and am trying to use them to reduce the following code to the lambda …

java lambda java-8 nested-loops
Creating N nested for-loops

Is there a way to create for-loops of a form for(int i = 0; i < 9; ++i) { for(int j = 0; j &…

c++ algorithm for-loop recursion nested-loops