Questions tagged [repeat]

"repeat" refers to the action of doing something over again.

Note that this tag can often be replaced by the more specific or tags.

3161 questions
0
votes
0 answers

For loop repeats infinitely and resets variable value to 0

New to coding, trying leetCode problems. This one is #14-longest common prefix. Don't want the solution to the problem just need help figuring out why my for loop repeats infinitely and resets my variable. I know it is repeating because the variable…
TorenRob
  • 1
  • 1
0
votes
3 answers

Repeating brush or tile of image in WinUI 3

I'm finding it awfully hard to see how to simply cover a rectangular XAML element with repeating copies of a bitmap! I am using WinUI 3 with Windows App SDK. I would like to use the repeating image as a background element in my app. It would seem to…
sjb-sjb
  • 1,112
  • 6
  • 14
0
votes
3 answers

Python function repeating itself after if statement satisfied

I am a beginner python user and I am stuck with a time-calculator program I am trying to create as part of an online certification. The program will calculate in an AM/PM format the time it is added from the initial time and the correct weekday. I…
Jess
  • 95
  • 8
0
votes
1 answer

Is there an R function to reduce the same sets of code for different data sets?

Is there a function where I can reduce the line of repeated plot codes for different data sets? plot_missing(prospects6K, group = c("Excellent" = 0.01, "Good" = 0.3, "Ok" = 0.6, "Bad" = 0.9), missing_only = T, …
wahlaoeh
  • 45
  • 7
0
votes
2 answers

C function repeats if statement after return statement

Does anyone know if a function is supposed to end after it returns something? I have my recursion function written below, but whenever it reaches the else statement and after it returns a value (steps), it runs the "if (new_number % 2 == 1)"…
0
votes
1 answer

CSS grid responsive but words squishing down before moving to new row

I used repeat(auto-fit, minmax(300px,1fr)) to not only set the width but ensure responsiveness, however, as the screen gets smaller, the words in the article class squish down, i do not want that, is there a way to fix this? .section-2 { …
Liquorice
  • 21
  • 4
0
votes
0 answers

Handling axios client network disconnect errors and retrying requests in React Native

We're creating a mobile application in react native. Right now we're facing a problem, a client may send a request and disconnect after that. The request on a BE is finished, but when a user opens the app, pops ups a network error and the user does…
0
votes
2 answers

Repeat a range a number of times

I have a simple problem, but I am not quite able to figure out the answer Given a range (in blue), and a number of times to be repeated (in orange), I need to create 2 spill arrays in vertical: the first one repeats the range the desired number of…
vsoler
  • 1,027
  • 2
  • 8
  • 17
0
votes
1 answer

Quicker way to write functions in javascript

I am working on a javascript app which displays images of the results of different US elections. I am thinking there must be a quicker way to do this than what I am doing. There must be some way I can have one function that displays an election map…
0
votes
2 answers

related to performSelector

I am new in iPhone app. I want to show a mesage at each 2 seconds when a button is pressed For that I am using this code. This code is work only one time. That means call only one time. Can you help me to solve this…
sai
  • 479
  • 10
  • 30
0
votes
1 answer

Repeating n row numbers in SQL

In postgresql syntax, row_number() can be used to generate incremental integers as in the example below. How would one repeat these integers n times or until the row length runs out? For example, using the following syntax, if the goal is to…
iskandarblue
  • 7,208
  • 15
  • 60
  • 130
0
votes
0 answers

Automatic search for available appointments and notify

There is a website for booking driver's license appointments online. You have to select your test type (written, road, ...), test center location, etc. every time and search for available time slots. Most of the times, there is no available slot and…
Amir
  • 1
0
votes
0 answers

Trying to validate user input for repeating values in 2D array

So I'm working on a Lo Shu Magic Square for my first programming class and I'm stuck. I'm sure everyone here will know what that is but just in case, it's a 2D array that takes 9 numbers from user input, but they have to be between that range (1-9)…
Clemente
  • 1
  • 1
0
votes
1 answer

Remove repeated code in function definition

this is my first question, so I may miss the "correct structure". Anyway, I have a header file, with a function. This function (void readFile()) is defined in a cpp file. Within this definition I have code which repeats itself a lot. If it was in…
0
votes
2 answers

Google sheets - How get multiple rows from one row by number

please, I don't know what to do. I want to get (create) rows in Google Sheets from other row by number in this row. From other tab or diferent sheet. For example: Create the second table from the first table. I tried Query and Sequence, but I guess…
1 2 3
99
100