Questions tagged [iteration]
Iterations are the successive repetitions in loops such as for, foreach or while. Questions with this tag are often concerned about how to best handle a collection of data.
iteration
10,908
questions
-5
votes
0
answers
77
views
C++ For Loop is not working correctly and cant find the bug [closed]
i have been working on a c++ program that calculates the arithmetic, geometric and harmonic means.
the first instance of the calculation gives the correct figures for the arithmetic, geometric and ...
0
votes
0
answers
5k
views
Iterations and multi-replacement
I have a file named file.in that contains 6 columns of data. One of the columns contains the mean and another contains the error. File.in is around 900 lines long with a different value for mean and ...
0
votes
0
answers
15
views
How use each in cypress when element is detached from DOM after action [duplicate]
I have this cypress code and it works. I need to iterate through all the links on the page. After clicking on each link, a breadcrumb tab opens. After closing the tab, the page with the links returns.
...
-1
votes
1
answer
51
views
Javascript : Find node value through recursive iteration
I have the following structure :
var content = {
"id": "RkktMTA1OC0wNTE3QElNQi82NTAwNC9YLzAwSDc",
"name": "FI-1058-0517",
"category": &...
0
votes
1
answer
24
views
Iterate through all the days in a month in DJANGO template
enter image description here
I have a model table like above which contains two columns on which dates on which an item is being sold in a month.
I want to show the entire month table in Django ...
0
votes
0
answers
9
views
How to extract particular field from custom duplicate objects and build a another response list using java 8 streams
I have below response from database and I need to convert it into the final json format using java 8 streams.
Response from Database:
[
{
"name": "Test1",
"age": "33&...
-4
votes
1
answer
63
views
Python Apply function to create new rows in loop
Goal: Here is a sample of a dataset that has "ID", "PHASENAME", "CDAYS", "MULTI_FACTOR", "DAY_COUNTER", and "DAILY_LABOR_PERCENT". The goal ...
0
votes
1
answer
40
views
Not able to get iteration in curly codes or php correctly
I have uploaded images as follows:
image 1 (an image is uploaded)
image 2 (no image is uploaded)
image 3 (an image is uploaded)
image 4 (no image is uploaded)
image 5 ...
-2
votes
0
answers
22
views
Object Not Updating Inside FOR Loop [duplicate]
Can someone please explain why this object is not being updated? This has been annoying me for more than an hour. When I run the code on this website: https://playcode.io/1919282, the fillcolor is the ...
0
votes
1
answer
46
views
Azure DevOps Rest API - Creating Iteration don't work
First I call all iterations that I have in my project - and it works fine and then I want to create a new one via the API. , but the method doesn't work, I get the error:
The remote server returned ...
0
votes
1
answer
84
views
My C code is able to iterate once through and come up with the correct mileage but on the second iteration it fails
The problems objective is to write a program that takes a number of data sets the user would like to enter and then within the data sets it counts how many miles you traveled. For example for the ...
0
votes
5
answers
130
views
Variable number of nested array iterations in C
First, sorry if the title is not clear, but I don't know how to ask this properly.
Imagine I have an array of N elements, in this case 4:
#define ELEMENT_COUNT 4
int arr[ELEMENT_COUNT] = { 'a', 'b', '...
0
votes
0
answers
28
views
Execution is very slow for GAN
I wrote a code on GAN and had previously trained in the Colab environment. I leave the Colab code below.
def build_generator(latent_dim):
"""Build the generator model.""&...
2
votes
3
answers
106
views
How to iterate over multiple ranges / sequences / numbers specified in var?
I can iterate over multiple ranges / sequences / numbers with constructions like:
for i in $(seq 1 3) 5 $(seq 7 9) 11; do echo $i; done
for i in {1..3} 5 {7..9} 11; do echo $i; done
But how to ...
1
vote
3
answers
74
views
How to iterate through a dictionary to get values on the lowest level?
Please help me understand how to extract the value of each ingredient for each product and do something with it. But for starters I just want to print them all one by one.
MENU = {
"product_1&...