I was happy to note today a chemistry-related post on code golf:

How many atoms in the hydrocarbon?

A hydrocarbon is a chemical compound which consists of only hydrogen and carbon atoms. For this challenge, we will only consider the three simplest kinds of hydrocarbons: alkanes, alkenes, and alkynes with no branches.

The answers are, uhm, terse, eg:


I realize this is more appropriate as a topic for a chatroom, but post here for others to pick up. Those who like to tinker with code and chemistry may take notice.

  • $\begingroup$ Yes, code. That is exactly how I would describe that answer... $\endgroup$ – Martin - マーチン Dec 7 '19 at 16:14
  • 1
    $\begingroup$ Not to be all fun-hating here, but I think that would be too far off-topic on main site. As a chat room, why not? $\endgroup$ – orthocresol Dec 8 '19 at 15:29
  • $\begingroup$ @orthocresol Well, no reason this question has to stay up, I can delete it. What would be an appropriate chatroom to make this kind of announcement in? $\endgroup$ – Buck Thorn Dec 8 '19 at 16:32
  • 2
    $\begingroup$ Oh, sorry - I don't mean that the meta post is off-topic, it's perfectly fine! I just mean that code golf style questions would be off-topic on the main site. $\endgroup$ – orthocresol Dec 8 '19 at 16:37

You must log in to answer this question.

Browse other questions tagged .