« first day (3448 days earlier)      last day (1395 days later) » 

3:32 AM
0
Q: Are they collinear?

Mukundan314Task Write a program/function that when given three 2d points in cartesian coordinates as input outputs a truthy value if they are collinear otherwise a falsey value Three points are said to be collinear if there exists a straight line that passes through all the points You may assume that the co...

 
 
3 hours later…
6:46 AM
How do I pass a list of strings as a command line argument?
And even though I've linked Jelly, I'm looking for a way to do it for any cmd line argument taking language
Oh wait, maybe that does work
well, on TIO it seems to work
Okay, let me rephrase my question: how do I pass a list (e.g. [1,2,3] or ["abc", "def"]) on a cmd line in something like terminal?
Something readable by sys.argv
 
7:06 AM
Also, since when was this deleted?
 
 
1 hour later…
8:10 AM
@Lyxal Use single quotes to enlose the argument.
Or, if your terminal doesn't support that, you need to parse spaces in the list yourself. (or use argparse)
 
9
Q: Generate Sexy Primes

RohitSexy Primes are pairs of numbers (n, m) such as n and m both are prime, and m = n + 6. You need to create a function which will take an integer, check for sexy primes from 0 to that integer, and return an array of arrays. For example, listSexy(30) must return [[5,11], [7,13], [11,17], [13,19], ...

 
8:38 AM
0
A: Sandbox for Proposed Challenges

TanmayMusic with pi and e(eulers number) pimusiccode-golf Because I forgot to celebrate the pi-day(14.3) lets celebrate with pi, e and music! Challenge No, we don't have time to eat a pi-pizza, lets make a program. What you need is 500 digits of pi, and 10 digits of e. The User gives any digit from 0-...

 
9:38 AM
0
Q: Find the perfect square!

Third-party 'Chef'Your task is to turn a square root like this: √12 into a form like this: 2√3 For our purpose, we only need to output the left number here: 2 Specifications If the number is already a perfect square, do this: √4 = 2√1 -> 2 If the number doesn't contain perfect squares, do this: √13 = 1√13 -> 1...

 
 
2 hours later…
12:04 PM
@user202729 Dang! I should have starred that immediately.
 
(... aren't deleted comments deleted from the starboard anyway?)
 
 
3 hours later…
2:59 PM
@Lyxal Around October, if I recall correctly.
 
 
3 hours later…
5:46 PM
0
Q: A long long time ago, in a galaxy ... right here

mattTask Given a positive integer return the geologic era and period it was that many million years ago. Input/output The inpt is a string or integer; the output is a string. Eras and periods are separated by slashes. Data The first level of quotes represents the era, and the second is the period. (...

 
 
1 hour later…
7:14 PM
ugh, I can't remember the phrase, "what kind of ... is this" when you see something that's somewhat unexpected
 
7:48 PM
0
Q: ASCII: Self Counter

John BrookfieldsDefinition The problem goes like this: Count the number of characters in your code, say n Find all the Fibonacci numbers upto n. Convert all the Fibonacci numbers to ASCII characters (8 bit i.e mod 256) If any of the non-control characters in this list occurs in your code add the ASCII val...

 
 
4 hours later…
11:42 PM
got it, it was sorcery
3
 

« first day (3448 days earlier)      last day (1395 days later) »