flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Pyramid Message [online code challenge]

Author
Thread Post new topic Reply to topic
bitRAKE



Joined: 21 Jul 2003
Posts: 4024
Location: vpcmpistri
bitRAKE 19 Apr 2024, 15:13
fasmg makes easy this silly coding challenge. It's the job interview filtering type question: They present this silly encoding for a message and then ask how to decode a larger message.
Code:
6 rulez
3 programming
5 grape
1 assembly
4 swimming
2 jelly    
With these numbered words we form a pyramid:
Code:
   1
  2 3
 4 5 6    
... resulting in the the secret message "assembly programming rulez", from the right edge of the pyramid, 1 3 6.

I've attached the larger problem separate from my solution in fasmg.

It's not a difficult problem.


Description: my solution
Download
Filename: bitRAKE.zip
Filesize: 313 Bytes
Downloaded: 75 Time(s)

Description: larger pyramid puzzle
Download
Filename: tri_puzzle.zip
Filesize: 1.72 KB
Downloaded: 720 Time(s)


_________________
¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup
Post 19 Apr 2024, 15:13
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.