Tips for code-golfing in C# - Code Golf Stack Exchange What general tips do you have for golfing in C#? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to C# (e g "remove comments" is not an
Translate Morse code based on tone duration Goal Morse code is often represented as sound Given a stream of bits that represent whether sound is on or off, translate the stream into letters and numbers and spaces Specifics The bit stream
Code Golf Stack Exchange Welcome to Code Golf and Coding Challenges Stack Exchange! This is a site for recreational programming competitions, not general programming questions Challenges must have an objective scoring criterion, and it is highly recommended to first post proposed challenges in the Sandbox
Charlie, Oscar, Delta, Echo - Code Golf Stack Exchange The code between “ and » is just a compressed value that will form the string "Alfa Bravo Charlie Delta Echo Foxtrot Golf Hotel India Juliet Kilo Lima Mike November Oscar Papa Quebec Romeo Sierra Tango Uniform Victor Whiskey Xray Yankee Zulu" by looking up all the words (with single space prefixes, except for "Alfa") in Jelly's dictionary
Is this string a palindrome (in Morse Code)? Explanation Starting from " the end of the code generates the Morse alphabet, with dots as \x08 and dashes as \x07, and separated by tabs c splits the string by the tabs XzG translates (X) the input (z) from the alphabet (G) to this "Morse alphabet" s sums (joins) the Morse symbols together For empty inputs, returns 0, but this is not a
Morse code to standard output - Code Golf Stack Exchange This question involves taking input in Morse code as (period) and - (minus symbol), with spaces to separate the input Your task is to convert the code to standard output
Reverse indentation - Code Golf Stack Exchange Submissions must take a code snippet as input, reverse the indentation, and output the resulting code This is done by the following procedure: Split the code up into lines Each line will start with zero or more spaces (there will be no tabs) Find all unique indentation levels in the code For example, for the above example, this would be 0 4
Capitalize String - Code Golf Stack Exchange Given a string, capitalize it By capitalization I mean conTeNT-lENgth changes to Content-Length In the example I showed the string with 2 words with - as the word boundary However I expect you to