Linked Questions

1
vote
14answers
200 views

Reverse Cat Programme [duplicate]

Simple problem, create a programme that takes one input, and the outputs that input in reverse. Some test cases are [input -> output]: ...
1
vote
1answer
163 views

Reverse user input [duplicate]

This is a pretty simple one. if the user enters "Hello World" your code should output "dlroW olleH" I was inspired by the multiplication question recently posted. I know this is probably easy in ...
0
votes
0answers
152 views

reversion of string in c [duplicate]

In python reversing of string is as easy as: string[::-1] But not very same in c. This is the code I am using to reverse integers in C: ...
-1
votes
1answer
118 views

Print The Input Backward [duplicate]

Just take an input in any way and then print it backward (trailing newlines allowed). For example: Hello World -> dlroW olleH Hi -> iH Yes, it is case ...
138
votes
50answers
24k views

Tips for golfing in C

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 ...
30
votes
42answers
3k views

Implement “tac”: Print lines from a file in reverse

Between the kitten question and seeing this question at U&L about some sed magic, how about implementing tac? Objective ...
12
votes
13answers
803 views

Tips for golfing in Befunge

What general tips do you have for golfing in Befunge? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to Befunge (e.g. "remove comments" ...
20
votes
1answer
724 views

Detect Duplicate Questions

Detect Duplicate Questions Once upon a time, there was a golfing site. It had a problem: people would post similar or identical questions again and again. You have been chosen selected forced ...
-13
votes
19answers
353 views

How long is this string?

It's strange this question hasn't been asked yet, so here it is: Calculate the length of a string given through STDIN Rules As said, your string will be given through STDIN, not via command line ...