Sometimes Mathematica answers get over voted, but this is just ridiculous. +5 despite a comment below saying that the answer is invalid without any response from the OP that is over 9 hours old
I can't downvote because my upvote is currently locked. I should really start checking answers for validity. I used to do that but then I'd spend way too long just validating all of the answers
Because there is not too much users to downvote. Also there are +5 and -1, so that in order to make the net total of reputation gain <= 0, we need to downvote 24 more times.
the rep gain/loss isn't really what I'm going at since rep isn't really an important indicator of anything
more so I want to get rid of the answer because it's incorrect :P
I could submit a blank edit to revert my downvote (which would also send another notification to OP) but I don't think that's necessary (or a good idea)
@user202729 There's easily enough users; we'd need 5 users to downvote to a negative score, and 3 of those users to VTD. Of course, we could just notify the mods and avoid vote manipulation :P
I mean OP has been active recently so that leads me to be convinced that maybe they didn't see the notification (because sometimes I don't see notifications because SE collapses certain notifications together)
also for reference my jelly solution was 25 bytes
in case it interested any jelly competitors for this challenge :P
@HyperNeutrino As tempting as that is, I hate set operations with Jelly (and don't really understand the challenge, TBCH). That's not an invite for anyone to try to teach me though :P
It is kinda a bad thing that the last answer was posted during a time where I'm active :P If it was posted early in the morning (UTC), it late at night, it would give you more time to do it :P
But, we both knew the algorithm, and translating English to Logo is approximately as hard as translating Python to Logo | translating English to Python is approximately as hard as translating Logo to Python. Also I've just learnt Python so I didn't know much.
@HyperNeutrino I'd call myself good at maths, but I have no clue what OEIS is talking about half's the time, and you seem to understand basically anything it throws at you. You are definitely underselling yourself by saying that :P
it turns out that maths.stackexchange.com will also work (but it redirects to math.stackexchange.com which therefore clearly must be the superior option :PPPP)
It is interesting how different people can come together and form a united cause to educate their peers. Together the five of us worked hard over several days on crafting a masterful lesson. A task such as this could only be accomplished with setting aside the differences we individually have. Over time we learned the meaning of compromise we strove for perfection.
it helps me focus and I actually go into my vast vocabulary that I have gathered from many a year of reading novels more suited for people around ten to fifteen years above my age level
A half-exponential function is one which when composed with itself gives an exponential function. For instance, if f(f(x)) = 2^x, then f would be a half-exponential function. In this challenge, you will compute a specific half-exponential function.
Specifically, you will compute the function fro...
Electron Configuration
In atomic physics and quantum chemistry, the electron configuration is the distribution of electrons of an atom in atomic orbitals. For example, the electron configuration of the neon atom is 1s2 2s2 2p6. (From Wikipedia)
Challenge
Your challenge is to take a number ...
Slightly worse performance (using a linear filter rather than binary search), but it works now
Anonymous
Actually it might be better performance - the buggy binary search had to do binary search to find the correct value, then find the length of the list up to that point, so it would be linear anyway. This way uses a generator and itertools.takewhile.
I think IdentityHashMap will do the trick. However, both strings will point to the very same instance since you used a string literal. Try s1 = new String("hi!") and s2 = new String("hi!") together with an IdentityHashMap instead.
When you said hardcoding I first thought the function definition is spliced into your solution and not defined elsewhere in a function named f, which makes infinitely more sense.
Today's date is quite an interesting one. Let's take a look at why. The date 07/12/2017 (in DD/MM/YYYY date format) can be split into the year (2017) and the rest (07/12). You may notice that the digits in the year can be rearranged to match the digits in the rest of the date, which is the basis ...
@cairdcoinheringaahing $, if it gets a block as its first argument, will pop another item and sort that based on the block, like Python's sorted's key parameter
@HyperNeutrino You post it, I have to sleep now. https://tio.run/##tVpRc9s2En6WfgXy0EaKZVqyk4datq8eX9pmJmlnLpl78WgykAhLkEhQJUHZake/437Q/bDc7gIgAYpSnLn2wTIF7C6wu98udkEt@YafZmuhlvHqhy9fZLrOcs2WMBqVWibRbZ7z7XtZ6HF3b@7A8LtYKC319hdeLD7wdQvFxxlXSuTjbnddThM5Y7OEFwX7wKVif3Y73c7ZGYsFDOZSzZnYiHyrF/hoyWXBVKYZZ/Msi5mMBR@waanZO7bOs1QWAp4eZZKQIKSEsRJG9UKkEfspy5l44uk6oRH2Np4L9iBFEhdsIXLBikVWJjGbChAnN1wLksNVjOTB/FxoLfIi6nYKzXWlCEkERTr0oMSTHoAosRkw/SjVGCYepOIJk0rD9mIxtqQ9N9An7g4oXUT4nV1XdDsnds1l/iuI7tG3kAWGgUWMmYhwXXjGcWTv5EKXuaq@B@I@we5axOGmnTj7fETcDh0YmOPnnK8XIA/mz169gk/2it0txGwFjszSLF8Dcwrm1I9CgKjHjM2Rox…
in a bit as well unless one of you wants to post; i may not have enough time to post a well-thought out one and it probably has a 20% chance of getting closed right away
IMO, it's a good idea, but could be done much better. Next year, I think we should have something similar, but it should be a community effort, and start being planned in November
advent7 will be posted in an hour or two once i get home. if anyone wants to they can post and I'll look for advent7 when i come back on and make one up if there isn't one yet
Show a Chess Piece Range
Write a program or function that, given a set of movement rules, shows the available moves for a fairy chess piece.
Movement Rules:
This will use a slightly modified version of Parlett's Movement Notation:
A number, 1, 2, etc. shows how far a piece can move in a given...
@EriktheOutgolfer technically you don't need the space if you aren't calling from the shell. the compiler doesn't receive the string " -fusion", but the string "-fusion"
CMC: Given a list, output its second most common element (you can assume there is exactly one element which satisfies the condition). You can make assumptions about the data type(s) of the elements
@EriktheOutgolfer TIO, for example, doesn't require a space before a compiler flag. Some compilers can be called from inside other languages - generally you don't need to provide any flags with spaces.
@WheatWizard if it's a problem we can either change the rules of the challenge which is frowned upon especially with how long it has been open or we can close it