Questions tagged [puzzle]

DO NOT USE - prefer constructive questions, or use more descriptive tags. Otherwise, your question might be appropriate for codegolf.stackexchange.com.

DO NOT USE - prefer constructive questions, or use more descriptive tags. Otherwise, your question might be appropriate for CodeGolf.


The questions tagged "puzzle" are essentially programming questions, that are as good as solving puzzles. These can be contrasted to the real-life problems, which are comparatively easy to solve.

859 questions
-6
votes
1 answer

Translate a string using a character map

Consider the following pattern A → D M → P X → A a → d m → p x → a I need to write a program to solve the following message Vrphwklqjphdqlqjixo If there is any inbuilt function in python please let me know. Thanks in advance.
Raj Damani
  • 782
  • 1
  • 6
  • 19
-7
votes
2 answers

How to work out this AutoIt encryption challenge?

My friend sent me a AutoIt riddle and a key to decrypt. I am a beginner in AutoIt [AU3] and I am stuck on "split". ;~ AutoIt Code StringReverse("46-ESAB") Func StringReverse( $input ) Local $output Local $split = StringSplit( $input , "") For $i =…
Sam
  • 1
  • 1
-10
votes
3 answers

How can I replace this code with one if statement?

For the sake of challenge, how can I replace this code with only one if statement? unsigned int x, y; cin>>x; if((x>=0)&&(x<=1)) y = 1; else if (x<=3) y = 2; else if(x<=5) y = 3; else y = 6;
Alexander
  • 11
  • 3
1 2 3
57
58