Skip to main content

All Questions

Tagged with
-1 votes
3 answers
72 views

Todo list using array and loop

I want to create a todo list using array and loop and display the list in div container. I am able to display the list but it is muliplying the same list stored and is displayed. <body> <...
Sam Sandy's user avatar
0 votes
2 answers
61 views

Is the & operator is essential to use as address operator [duplicate]

#include<stdio.h> int main() { int a[5]={5,10,15,20,25}; int *p; int i; p=a; for (i=0;i<=5;i++) { printf("the address of the %d is = %d\n",*p,p); ...
khushal dak's user avatar
1 vote
5 answers
79 views

In C#, I'm trying to iterate strings in single loop, how?

I'm trying to achieve this output: LOWEST LOW MEDIUM HIGH HIGHEST HIGHEST HIGH MEDIUM LOW LOWEST I know there are many ways to do it, but I'm trying it in single loop, is it achievable? My code is ...
Norvz's user avatar
  • 27
1 vote
0 answers
84 views

Python Iterating over Numpy Tile and for-loops

Goal: Here is a sample of a dataset that has "ID", "PHASENAME", "CDAYS", "MULTI_FACTOR", "DAY_COUNTER", and "DAILY_LABOR_PERCENT". I was ...
Ty Kendall's user avatar
-1 votes
0 answers
24 views

Issue with loop causing incorrect output in LeetCode problem 1509

I'm working on Leet Code problem 1509, where I need to find the minimum possible difference between the largest and smallest value in an array after performing at most three moves (each move consists ...
Meet Agarwal's user avatar
0 votes
1 answer
34 views

How to to loop through portion of Array in Swift

I want to loop through a portion of an Array in Swift, not the entire array based on the index. The array is coming from an API so I don't know the number of elements in advance. For example for the ...
user6631314's user avatar
  • 1,868
1 vote
2 answers
33 views

Struggling to set an option in a google Sheet's dropdown menu with JS

I am trying to create a sheet for my friend and me about some items selling, cost, and state (Sold, in the sale, etc) and I want to automate my "state" column, which contains dropdown menus ...
Clean Pick's user avatar
0 votes
0 answers
10 views

Trying to create a new dive utilizing the keys of each object in an array of objects in local storage

I'm having trouble creating a new div for each object in the local storage array of objects. I have a form that's input values are added as objects into local storage, which holds an array of all the ...
user25669532's user avatar
-3 votes
1 answer
60 views

Why is variable passing 'object Text' instead of values? [closed]

I am in a for loop creating a table with radio buttons. I am trying to dynamically create the labels. My created variable will console log the expected values, one line above where I pass the variable ...
2CStarsOnceMore's user avatar
0 votes
0 answers
13 views

How can I automate this requirement in mql4

I just want to pick a candle date and backtest it for a number of trading days (or 3 months) in history. Same time every day with the amount of candles I choose. int cnd[] = {0,1,2,3,4,5,6,7,8}; // ...
Louis's user avatar
  • 1
2 votes
4 answers
149 views

Printing command by reading CSV file with AWK into a bash array

I have the following CSV file (mycsv.csv): love,hate,--command yes this is bad --other-command fox,duck,--command yes this is bad --other-command turtle,rabbit This means the command would be --...
Gabriel G.'s user avatar
0 votes
1 answer
55 views

How can i optimize or reduce for loop for this nested python dictionary? [duplicate]

I have this nested dictionary in python flag_dict = { 'modl1': { 'slide1': { 'screens': { 'screen1': { 'mp4_1': 1, '...
Nava's user avatar
  • 1
1 vote
0 answers
23 views

An index error occurs while testing parameters in my cost function

Here is the error: IndexError: index 6 is out of bounds for axis 0 with size 6 I have not done anything since I don't know how to fix the problem. My cost function gets an expected output using ...
Lori Wojciechowicz's user avatar
0 votes
1 answer
37 views

iText 7, first item in my loop doesn't get formatted. Any idea why?

When I run my loop, it is supposed to format "res.position" ,and it does for every iteration of the loop except for the first one. for(int i = 0; i < res.numJobs; i++) { document.add(...
Om Bakhshi's user avatar
0 votes
1 answer
38 views

VBA Set Variable Values using For Loop

I am trying to see if it's possible to set the values for large sets of variables using a For-Loop, without attaching an integer to the end of the variable name. Been playing around with this for a ...
Quincy Starcruiser's user avatar

15 30 50 per page
1
2 3 4 5
579