Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [code-trolling]

This tag exists for historical reasons. New challenges of the type previously posted under this tag are not welcome.

Filter by
Sorted by
Tagged with
280
votes
141answers
470k views

I need a program where the user inputs an array of doubles and the program outputs the array sorted

Note: This question was severely edited since I first posted it here. The rules were moved to here, read them before posting any answer to understand the purpose of this. This was the first question ...
68
votes
46answers
70k views

How to write a C program for multiplication without using the * and + operators?

Is it possible to write a C program that multiplies two numbers without using the multiplication and addition operators? I found this on Stack Overflow. Please help this poor programmer with his ...
33
votes
30answers
33k views

How do I find the longest palindrome in a string?

The challenge: Make a function that finds the longest palindrome inside a string. Note: This is a code-trolling question. Please do not take the question and/or answers seriously. More information ...
16
votes
36answers
9k views

Generate a random sequence of numbers

The challenge: Generate a random sequence of numbers. The only input should be the length of the sequence. Extra internet points for pure-functional solutions. Note: This is a code-trolling ...
42
votes
75answers
13k views

How do I write an adding function? [closed]

The problem: I am the lead developer for a big company, we are making Skynet. I have been assigned to Write a function that inputs and returns their sum RULES: No answers like ...