Definition
A dollar word is a word where when each of its letters is given a cent value, from a = 1 to z = 26, and the letters are summed, the result is 100. Here is an example on CodeReview, and here is a list of dollar words I found online.
Input
Input will be alphabetical from a-z, in your ...
Python, score 16
Unique Characters: xc|869-127534bps
Program 1:
def y():
if 0: +0xfadce| 869
return 0
In program 1, there are 5 spaces in the seemingly blank line.
Program 2:
def y():
if 0:return--1027534+0b1101100101
pass
return 0
Some help was found with the peepho...
OK, slightly related question: If I have a std::map<Foo, std::vector<Foo>> are there any operators that I need Foo to implement? (For example, the < operator?)
Because I don't think a map requires the less than operator, but my compiler seems to disagree
Chat Mega Challenge: Create a program that when given a string will create golfed markdown code to display the string as a code block within <pre><code></code></pre>.
Size of the output is the score.
The input string should be assumed to contain every Unicode character at least once.
hypothetically, of course. It should be able to handle every Unicode character. Note that SE will display most characters, so many will not need to be HTML-escaped.
Nibbles Nostalgia
People from my generation certainly know what is the Nibbles game! If you are not here included, what I am asking is a one-line version the level 1 of https://www.youtube.com/watch?v=UmeKHtei0qo (time: 14s—54s)
The challenge is to write a game that is a one line, one level Nib...
Code golf could be defined abstractly as calculating the kolomorgov complexity of encoding a function that accepts produces the same result as a second function in that second function's domain
@HelkaHomba Uhhmmm, that's hard to explain. But basically there's a data logging screen, and it will display all events in a time range, but we might want to filter out some events based on either a) The object that logged the event, or b) The type of event logged. If the filter menu has an object unselected, then there's no point in showing the event types that belong to that object.
std::map<std::string, std::pair<bool, std::map<std::string, bool>>>
Object name, ^ ^ ^ Is this filter selected?
| | |
| | The filter name
| |
| The corresponding filters
|
Is the object selected?