Read out the C datatype code-golf c syntax parsing
Background
Variable declaration statement in C consists of three parts: the name of the variable, its base type, and the type modifier(s).
There are three kinds of type modifiers:
Pointer * (prefix)
Array [] (postfix)
Function () (postfix)
...
Remove UTF-8 BOM
code-golf string unicode
As we are trying to golf every bytes from our code, we want avoid a text file saved in UTF-8 with BOM. So, let's remove it.
BOM for UTF-8 file is an character whose code point is U+FEFF. It byte sequence is EF BB BF.
Input
Input the file or content ...
Exact change combinations
This challenge is not mine. It was written in the main site but put on hold for lack of winning criteria. The author hasn't show up yet so I'm posting it to the sandbox in the meantime. I consider it is a good challenge.
With euros you can pay an amount in a variety of...
Given an inconsistently indented piece of html code your task is to return the same text but correctly indented
Indent space = 4
Assume input will be non-empty.
Input can be taken as string or array/list of lines
Opening and closing tags must be on the same line as long as there is not any oth...
My two kids like to play with the following toy:
The colored areas with the shapes inside can be touched and the turtle then lights the area and plays a sound or says the name of the color or the shape inside. The middle button changes the mode. There is one mode in which the areas play differ...
What is an elegant way to find all the permutations of a string. E.g. ba, would be ba and ab, but what about abcdefgh? Is there any example C implementation?
A common mistake new users seem to make is posting questions (like this) asking about general programming help which are better suited in StackOverflow. While these questions are being closed, I don't think we should just let that happen and instead try to stop new users from posting these questi...
Maybe some details, just not copy-pasted text so that nobody can google anything.
Without flavor text... you have the coordinates of a bunch of points on a plane. You need to place X additional points so that the X points you place are >= all previous points (greater than or equal to, measured in both dimensions independently). Out of all possible solutions, what's the minimum possible value of x+y for the point with the greatest x+y.
Or... maybe that wasn't the best description.
It's more of a partitioning problem... partitioning a bunch of points into X groups, where you want to minimize the score of the highest-scoring group, where the score of a group is the greatest x position + greatest y position.
There's actually a pretty efficient algorithm for it (comparatively speaking). My code can group 20000 points into 100 groups optimally in 0.1 seconds.
@Adám You can find closed ones but I don't know a way to narrow down to specifically off topic. Maybe SEDE?
@PhiNotPi I think I understand the second description, but I don't see how it fits with the first description so maybe I'm missing something. If you're hiding from Google maybe explain when the competition is over... :)
@Adám I don't think that'll work.. Noone wants to be called a noob and I don't think many would be willing to frequent a site made pretty much for homework
SO has helped me so much in times of need. It is crazy - sometimes I am having a huge issue with a program I'm working on at school or work, and I post it on SO and the answers come quickly and easily. Lots of time its a typo, while others its a deep misunderstanding of mine. Having started progr...
Beyond easily googleable things & homework help I don't see many more types of questions on a beginner programmer site. The idea of SE (AFAIK) is to gather questions for others to search for, but for these types of questions the only people getting help are the askers.
if something ends up posted on "noobs" then it's probably something that the person could have looked up/attempted themselves without internet-sourcing their answer
so i personally think it's a bad idea unless it's purposely unwelcoming
This site may have been built primarily on code-golf challenges and puzzles that have no winning criteria, but we have evolved away from that. Our name is outdated, and we should rebrand ourselves.
Because the folks in the chat cannot seem to agree on a name, I'm going to post multiple answers a...