python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Saving calculation results for re-use, while managing memory consumption
I'm caching values that are slow to calculate but are usually needed several times. I have a dictionary that looks something like this:
stored_values = {
hash1: slow_to_calc_value1
hash2: slow...

Antti_M
Votes: 0
Answers: 1
Embedded system, How to define or calculate a time period
For designing embedded systems, one of the steps is scheduling.
I know the execution time can be measured by using some functions. For example, I can use micro() in Arduino to measure the time betwee...
TaiwaneseFoodIsTheBest
Votes: 0
Answers: 2
Execution Timed Out (12000 ms): How can I optimize JS kata to run faster? [Upside-Down Numbers - Challenge Edition]
function upsideDown(x, y) {
const list = ["0", "1", "6", "8", "9"];
let count = 0;
for (let i = parseInt(x); i <= parseInt(y)...
Ambri
Votes: 0
Answers: 1
How to generate row-wise permutations of a 2d Array?
I recently got this question (paraphrased below) in a practice interview test and it still stumps me:
Given a 2d array A, generate a list of row-wise 1d array permutations from it.
A = [
[1],
...
polarSyndicate
Votes: 0
Answers: 2