Linked Questions

2 votes
14 answers
279 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]: ...
EdgyNerd's user avatar
  • 1,386
1 vote
1 answer
198 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 ...
Justin's user avatar
  • 443
-2 votes
1 answer
143 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 ...
vityavv's user avatar
  • 779
168 votes
65 answers
42k 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 ...
Casey's user avatar
  • 3,619
22 votes
93 answers
5k views

Average Two Letters

Introduction Every letter in the English alphabet can be represented as an ASCII code. For example, a is 97, and ...
sugarfi's user avatar
  • 2,203
30 votes
43 answers
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 ...
Nick T's user avatar
  • 3,297
21 votes
34 answers
2k views

Reversed Squares

Given an integer n, your task is to determine whether it is a perfect square that when reversed, is still a perfect square. You may assume n is always positive. When numbers such as 100 (10x10) are ...
Larry Bagel's user avatar
  • 4,219
15 votes
15 answers
1k 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" ...
Justin's user avatar
  • 21.3k
22 votes
1 answer
791 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 ...
user avatar
0 votes
5 answers
352 views

Mirror a String in Place

Write a program that takes a string as input and modifies it by reversing the string in its place by mirroring the position. The first position goes to last, second to second last and so it goes on. ...
Aitzaz Imtiaz's user avatar
-11 votes
20 answers
568 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 ...
univalence's user avatar
  • 1,659