The tag has no wiki summary.

learn more… | top users | synonyms

29
votes
26answers
2k views

Mass of elements

There are more than 100 elements in the modern periodic table. You challenge is to output the rounded mass of an element with respect to the input given. Input Input will contain an abbreviation of ...
8
votes
4answers
201 views

Ionic Compound Golf

Challenge Given two inputs, a positive ion and a negative ion, you must output the formula for the ionic compound which would be made from the two ions. This basically means balancing out the charges ...
9
votes
3answers
749 views

“Atomic” code golf - determine the number of neutrons in an isotope

Your task is to take an string containing an isotope of an element as input, encoded like the following example with the atomic number followed by a space and the IUPAC chemical symbol for the ...
11
votes
7answers
1k views

Longest reverse palindromic DNA substring

As you may know, in DNA there are four bases — adenine (A), cytosine (C), guanine (G) and thymine (T). Typically A bonds with T and C bonds with G, forming the "rungs" of the DNA double helix ...
40
votes
13answers
5k views

Periodic Table of Elements - Code Golf

Based on Practical Golf - US States Your task is to find the abbreviation (symbol) of an element given the element name, up to and including ununoctium (118). Use the periodic table on Wikipedia. ...
14
votes
6answers
798 views

Electron Configurations

Electron Configurations Your mission is to accept an element's atomic number as input, and output its electron configuration (e.g. 2,8,8,2 for calcium). Input An atomic number from 1 to 118. You ...
19
votes
2answers
873 views

DNA: Deoxyribonucleic ASCII

Given a sequence of the bases Adenine, Cytosine, Guanine and Thymine (encoded as ACGT), you're to produce an ASCII art representation of a corresponding double strand of DNA. The strand will extend ...
11
votes
7answers
586 views

Molar masses of compounds

Task Write a program that takes in a compound made solely of elements with an atomic number less than or equal to 92 (Uranium), and outputs the molar mass of the compound in grams/mole. Rules and ...
7
votes
4answers
521 views

Naming ionic compounds

An ionic compound is named like so: (metal name) (non-metal suffixed with -ide). Here is a list of all the suffixes that need to be replaced with -ide: -on -ogen -ygen -ine -orus -ur -ic -ium The ...
12
votes
3answers
2k views

Balance chemical equations!

Bernd is a highschool student who has some problems in chemistry. In class he has to design chemical equations for some experiments they are doing, such as the combustion of heptane: C7H16 + 11O2 ...