132 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
2
answers
169
views
Hackerrank left rotate in python time limit exceeded
I am new to hackerrank and programming, the left rotate question from the data structure section is my third question I am trying to complete. My code as follow:
#!/bin/python3
import math
import os
...
0
votes
1
answer
1k
views
Is there a way to bypass Excel's 2 minute Script runtime limit?
I'm currently facing a challenge with an Excel script designed for processing a large dataset. Each time I attempt to run this script, I encounter a timeout error; "Range getCell: Timeout", ...
2
votes
0
answers
113
views
CPLEX Conflict Refiner Ignores Time Limit
I am using CPLEX 22.1.0 and docplex library in python to extract the Irreducible Infeasible Subset of a Linear Programming problem. The extraction seems correct but CPLEX is ignoring the time limit ...
0
votes
1
answer
203
views
Cancel an order with PayPal API v2
I want to know if there is any possibility to cancel a paypal order with status CREATED or PENDING?
With API v1 there was a orders_cancel endpoint to cancel an order: https://developer.paypal.com/docs/...
-1
votes
1
answer
144
views
Is there any way to optimize the following code without changing the logic and language ? Reason : Time limit exceeded in UVa
10110 - Light, more light
There is man named "mabu" for switching on-off light in our University. He switches on-off the lights
in a corridor. Every bulb has its own toggle switch. That is, if it is ...
-1
votes
1
answer
67
views
java quick sort time limit
This code sometimes works okey, but in some tests its Time Limit. Whats the mistake?
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = ...
-2
votes
1
answer
168
views
My project wont build and time is running out
I joined my first ever game jam 8 days ago, and I've put in over 24 hours worth of work at this point. It closes in under 4 hours, and it won't build! I'm panicking! It keeps giving me the errors:
...
0
votes
1
answer
75
views
Merge sort working slower than other sorts when it should'nt be
I wrote a Merge sort code, which works fine in my pc but give "Time Limit Exceeded" error on platforms like leetcode. I have heard that merge sort is faster than Selection, Insertion or ...
0
votes
1
answer
87
views
F#: how to stop function by time limit
let runWithTimeout (timeout: int) (action: unit -> 'a) : 'a option =
let cts = new CancellationTokenSource(timeout)
try
let task = async { let! res = Task.Run(action, cts.Token)
...
0
votes
0
answers
42
views
Time limit on the execution of a mathematical model
I have a mathematical model that takes a long time before returning the solution.
Is it possible to insert a parameter that blocks the execution of the model after a certain time? I would like it to ...
1
vote
0
answers
46
views
while using proc_open(), my time stamp to terminate the function is not working properly
I am having issues with my php code. I am executing c++rom fffff code using proc_open() in php.
//from another function I'm calling this function with parameters execute("code.exe", $STDIN, ...
1
vote
2
answers
226
views
Program to do word/phrase replacement exceeds the time limit
Sorry for the possibly long and dumb question, but I'm really stumped. I'm doing a task for the university. Its meaning is very simple. You need to implement a function that will change the "bad&...
0
votes
1
answer
265
views
CPLEX changing the time limit
I am using and running directly from the IBM ILOG CPLEX Optimization Studio to solve an optimization problem. Since the problem and the instance is so big, CPLEX takes a very long time, so I want to ...
1
vote
0
answers
182
views
Performance test not pass for almostIncreseSequence at CodeSignal
yes I know there are a few similar questions about this problem that's why I will skip the intro about it. All of them have different codes but nothing identical to mine and I couldn't understand and ...
1
vote
1
answer
136
views
Time Limit Exceed for BFS algorithm
It is leetcode #200, number of islands.
My code is
def numIslands(self, grid: List[List[str]]) -> int:
def bfs(i,j):
q = deque([[i,j]])
while q:
r,c =...