Hardware question: What motherboard would you recommend for a budget (non gaming) desktop PC build? I'm not picky about form factor, but it has to support DDR4 RAM and an Intel 7th gen.
Is it possible to get something in the 50-70 USD range?
@Downgoat Depends on what exactly you mean with generics. If that was generated from a template then the compiler should be able to check any cast
"""traditionally""" in JVM land though generics are not resolved at compile time aside from verifying that the type conforms to any extends or super constraints
Actually most answers on the OEIS challenge overflow integer range before it reaches 1000. Currently there are some disputes on the last answer. / Is Java 7/older remains? Java has builtin BigDecimal.
And you can calculate tan as sin/cos; sin;cos by taylor series (<- very bad method), till it still changes. At least it works (iirc there is no trigonometric builtin for bigdecimal)
Given a finite arithmetic sequence of positive integers with some terms removed from the middle, reconstruct the whole sequence.
The task
Consider an arithmetic sequence: a list of positive integers in which the difference between any two successive elements is the same.
2 5 8 11 14 17
Now s...
Examining the Students Swing
code-golf
The 2017 Level 1 Mathematics and Statistics NCEA examination paper has been making headlines in New Zealand for being 'impossible' and bringing students to tears.
One of the questions involves a children's playground swing, and finding where the holes in ...
Can you access Github now? If yes, can you get an old version of Jelly (somewhere around September 2017), and post a TIO link here? For some reason I can't access Github.
Is every device similar to USB (with bootable content) bootable? (for example, their main purpose is not USB, they may be a camera/smartphone/etc.) And if not, how can I check it?
In other word, is every device similar to USB be used as a bootable USB?
Write a function that takes two student record structures by reference and swaps all their
contents except their next pointers. Use your functions to implement bubble sort algorithm to sort
the linked list (do not use arrays).
Swap the Endianness
Tags: code-golf, hexadecimal, integer
As most of you probably know, (byte-addressable) hardware memories can be divided into two categories - little-endian and big-endian. In little-endian memories the bytes are numbered starting with 0 at the little (least significant) e...
Write a function that takes two date of birth structures as input and returns -1, 0, 1 if the first
parameter is less than, equal to or greater than the second parameter respectively.
Using your function, write a recursive mergeSort program to sort the linked list of student records in
increasing...
You can pick your preferred representation for I/O, as long as its consistent between them.
For example, they can be an array/tuple with 3 elements or an object with 3 properties named h, s, and l, but I'll accept other clever variations, like receiving the hsl as an integer (losing precision) a...
HSL to RGB values
You can pick your preferred representation for I/O, as long as its consistent between them.
For example, they can be an array/tuple with 3 elements or an object with 3 properties named h, s, and l, but I'll accept other clever variations, like receiving the hsl as an integer (...
That too. Actually Taylor series is a bad way to calculate functions, but at least it is probably "good enough" for the challenge. Anyone want to implement Cordic?
Well, I used trig identities to get the argument close to zero, so it should be pretty good. I just need to force arbitrary precision. Or implement CORDIC
Also, apparently the difference between precision and scale is that scale is the number of digits after the decimal point, and precision is just the number of digits.
Tomorrow, November 23rd, is Thanksgiving Day in the United States. To prepare, you need to cook up some ASCII turkeys. However, since you're late in planning, you need a program (or function) to help you with how many birds you need to prepare.
.---. _
.' './ )
/ _ _/ /\
...
@Poke I've been taught that doing any bool = bool comparison is bad practice, maybe my professors just didn't want me to find these kinds of things? :p
@Poke Python has this weird convention of chaining comparisons, so it calculates False == False and False in [False] when not given brackets for precedence.
> Comparisons can be chained arbitrarily, e.g., x < y <= z is equivalent to x < y and y <= z, except that y is evaluated only once (but in both cases z is not evaluated at all when x < y is found to be false).
Cops and Robbers: Redacted Primality
The challenge:
Step One: Write a piece of code which checks for primality.
Step Two: Remove pieces of your code by replacing characters with the symbol █.
Step Three: Post the redacted code on the cops thread.
Step Four: Wait for your code to be cracked and...
@Adám Your APL sessions are neat. I've been reading through the transcript some, as I haven't been able to attend one yet. I hope to be available for one soon!
Here is offline-only web page with JavaScript https://chris.bolin.co/offline/?lang=en
Try to do it without. Use your creativity and any hack of css, html you can think of to achieve the goal.
Bonus points awarded for
Works without further interaction
Hides back when connection is turned back ...