@Draco18s If you've got a console app for Runic, you can go to the TIO chatroom and ask Dennis to add it. Just give him the repository, how to run code from a file and a Hello, World! program.
The output for below piece of code prints 0 1 2 3 4 (each number in new line)
for(var i=0;i<5;i++){
setTimeout(console.log(i),i*1000);
}
The output for below piece of code prints 5 5 5 5 5 (each number in new line)
for(var i=0;i<5;i++){
setTimeout(function(){console.log(i)},i*1000)...
The idea for this code-challenge is simple: given a matrix of integers, let's sort it by applying Rubik-style movements. This means that you can select a single row or column and rotate its elements in any direction:
[1, 3, 2, 4] => [3, 2, 4, 1] (rotate left for rows/up for columns)
[1, 3, 2, 4...
Trilateration
Similar to Trilaterate your position with a small twist.
In a n x m array,
You will be given a list of (x,y,d) as input,
The twist in this problem is that d is not the exact distance from x,y but the maximum distance.
It should be in the format(a function):
f(list,n,m):
#you...
Cut-off the Determinant
Challenge:
Given is a square matrix of any dimension and any integer n.
The input will be given in any array format.
The code should be a function which returns the output.
Objective:
Remove m columns and m rows such that the determinant of the resulting matrix becom...
Description
The task of this challenge is to devise a program or function that tracks a given object in an \$n×n\$ space.
I/O
Your program will be given 3 inputs, which may be taken in any sensible way:
n will be the size of the plane's side. (so, for \$n=5\$, your plane will be \$5×5\$). You...
Is The Date Alphabetical?
(This is my first attempt at a golf challenge - I'd welcome feedback & revision help before posting the real thing)
Write a function or program that accepts a date as input and returns a truthy value if a given date is alphabetical, and a falsey value if it isn't.
An...
@AdmBorkBork I'd think a more interesting question would be the biggest sequential feed message amount, with no messages in between (that's what I read the question as initially too)
Kind of a meta-question to the mods here, would it be okay if I created a room for me and a friend I invited to the site? He's new to the code-golfing ways and I'd like to talk to him in a room where it wouldn't bother anyone else (also it'd be probably not in English)
Write a function or program that accepts a date as input and returns a truthy value if a given date is alphabetical, and a falsey value if it isn't.
An alphabetical date is a date whose month, day and year are in alphabetical order when expressed as a string (and when considered specifically in...
Ah, I just read in their profile that they would like to code in Flobnar if their was an online interpreter and there is now. I guess there isn't a way of pinging them except commenting on an answer?