@LegionMammal978 I Am The Beast Six Six Six of the Lord of Hosts in Edmond Frank MacGillivray Jr. Now. I Am The Beast Six Six Six of the Lord of Hosts IEFMJN. I Am The Beast Six Six Six of the Lord of Hosts. I Am The Beast Six Six Six of the Lord of Hosts OTLOHIEFMJN. I Am The Beast SSSOTLOHIEFMJN. I Am The Beast Six Six Six. Beast Six Six Six Lord v. Michigan State Police, et al.
hey I'm working on putting together test cases for a challenge involving floating points. Should I require submissions to handle edge cases like NaN and +/- Inf correctly?
@AJMansfield I'd say it depends on the challenge but if the challenge has more to do with "real numbers" in the mathematical sense than "the IEE754 representation for floating point numbers" then I would say don't test for NaN or Inf
@Mendeleev So I AM THE BEAST SIX SIX SIX OF THE LORD OF HOSTS IN EDMOND FRANK MACGILLIVRAY JR NOW. I AM THE BEAST SIX SIX SIX OF THE LORD OF HOSTS IEFMJN. I AM THE BEAST SIX SIX SIX OF THE LORD OF HOSTS. I AM THE BEAST SIX SIX SIX OTLOHIEFMJN. I AM THE BEAST SSSOTLOHIEFMJN. I AM THE BEAST SIX SIX SIX. BEAST SIX SIX SIX LORD, Plaintiff, v. Michigan State Police; City Police of Lansing; State of Michigan; Ingham County 54A District Court; and Ingham County Jail, Defendants?
Join answers on PPCG would be cool, i.e an answer was 50% me and 50% someone else, and rep would be divided accordingly. Thought of this because people can golf down someone else's answer and get rewarded but idk
totalOrder is normally just used for sorting things, Its just convenient for this challenge since it gives a definite answer to every possible 'is a or b closer to x'
Take a matrix A consisting positive integers, and a single positive integer N as input, and determine if there are N consecutive occurrences of the same number in any row or column in the matrix.
You need only test horizontally and vertically.
Test cases
N = 1
A =
1
Result: True
-------------...
Given one of the following:
AK,AS,AZ,CA,CT,DC,FL,GA,IL,IN,IA,KS,KY,LA,MD,MI,MN,MS,NV,NH,NJ,NM,NY,NC,ND,MP,OH,OK,PA,PR,RI,SC,TN,TX,UT,VT,VA,WA,WI
(with quotes)
"AK","AS","AZ","CA","CT","DC","FL","GA","IL","IN","IA","KS","KY","LA","MD","MI","MN","MS","NV","NH","NJ","NM","NY","NC","ND","MP","OH"...
for code golf challenges, how would bytes be counted for visual programming/patcher languages like puredata?
I thought maybe a system based on the language's saved file size for a patch, but that seems somewhat unfair as those files often contain metadata that isn't part of the program.
Hey, when you get back, @HyperNeutrino, isn't this challenge ( codegolf.meta.stackexchange.com/a/13102/55550 ) just lim_{x->infinity}(f(x)) with an additional test for divergence/oscillation?
like if lim x -> infinity f(x) = <finite> it converges, lim x -> infinity f(x) = <infinite> it diverges, and lim x -> infinity f(x) = <undefined> is probably oscillating
@StephenS Then it depend on the situation. If I'm using source control and could easily go back to a version that I didn't want saved over I might use it. Out of habit I hit Ctrl-S so often that it wouldn't make much of a difference for me though.
@HyperNeutrino padding-left: 2%; padding-right: 2%; or padding-left: 10px; padding-right: 10px;, depending on how you want it to show on narrow vs very wide screens, and increase/decrease as needed
@HyperNeutrino There are frameworks or css libraries or simple stuff like that out there for everything, modern (mainstream) coding is more finding what frameworks to combine and making them work together than actually doing any "hard" work yourself
Given a double-precision float, find the closest double-precision float whose binary representation is a palindrome.
Input
A floating point number x. You may use any format you like for input, but the format you chose must be able to represent every possible IEEE 754 binary64 value, including d...
@AJMansfield Okay so what's greater: The difference between NaN and Inf, or the difference between Inf and the largest finite number you can represent with a double?
@musicman523 The difference between Inf and the largest double is the same as the difference between Inf and the smallest (most negative) double, at least mathematically
What Tiles did I have?
Everyone should be aware of the scoring system in a classic board game: Scrabble. I remember going back into my old scrabble box and finding some old post-it notes containing old scores. I always wonder what the heck was played for some of the more insane point scores. Tha...
Write a program that adds or removes whitespace to format code nicely. Rules for what the code should look like when you're done:
No line should contain more than one of { and }.
A { should always be the last thing on a line.
A } should always be the only thing on a line (besides whitespace tha...
Pyth, 12 bytes: .U&b}ZPQsM`Q https://pyth.herokuapp.com/?code=.U%26b%7DZPQsM%60Q&input=33&debug=0 I'm so disappointed not to find an efficient way to test if `list1.contains(list2)` ><
CMC: Given inputs x, y, and z, output x + (y / z). The catch: You can't use a language that you have ever used before on PPCG, either on challenges or CMCs
A lean, mean bean machine
A classic example to introduce people to the concept of a discrete probability distribution is the bean machine. This machine has a large amount of marbles fall from a narrow passageway at the top, after which they hit rows of interlaced pins, where at each pin the marb...