Related to chemistry or some aspect of chemistry

learn more… | top users | synonyms

6
votes
1answer
133 views

Judge Some Titrations

In chemistry class, we were learning about titrations, and attempting one as a lab. We were using phenolphthalein as the indicator for the titration, so on top of grading the lab normally, my teacher ...
6
votes
2answers
180 views

Calculating dehydration synthesis results

Disclaimer: This challenge is extremely scientifically inaccurate. ;) Given an input of a list of molecules, output what the result would be if they were to all combine via dehydration synthesis, if ...
8
votes
5answers
210 views

Print The Formula

Introduction In chemistry there is a type of extension, .xyz extension,(https://en.wikipedia.org/wiki/XYZ_file_format), that prints in each line a chemical element, and the coordinates in the plane ...
11
votes
8answers
640 views

Chemical sentences! Decrypting [duplicate]

Background You are sitting in chemistry class and your friend keep sending you these strange letters. It is your job to decrypt the messages into words. This is the inverse of this challenge. The ...
2
votes
0answers
82 views

Chemical sentences! Encrypting [duplicate]

Background You are bored in class, and having exhausted all the possible things to write on a standard calculator (Like 8008135) you turn to the periodic table. You want to figure out if you can ...
14
votes
16answers
941 views

Back to the chemistry class

Introduction One of the first things I learned in chemistry, was giving the formula for the combustion of alkanes. The most basic example was: 2CH4 + 4O2 > 4H2O + 2CO2. Note that the equation ...
16
votes
1answer
270 views

Drawing Lewis Structures of Alkanes

I just had a lesson in school about alkanes and figured it would probably make for a great code golf challenge! Don't worry, it isn't as complicated as it may look! A Quick Rehash (Please Note: To ...
8
votes
2answers
387 views

Electron Configuration Diagrams

Challenge Given an element name, output its electron configuration. Input Your input will be the full name of each element (the range being from Hydrogen, 1, to Calcium, 20) with some exceptions - ...
16
votes
4answers
408 views

An elementary challenge

This challenge is inspired by this Oliver Sacks quote: “At 11, I could say ‘I am sodium’ (Element 11), and now at 79, I am gold.” ― Oliver Sacks I want you you find numbers in a string and ...
1
vote
10answers
738 views

Energy levels of electrons [closed]

Energy levels of electrons Electrons are ordered into "shells". However, sometimes electrons get excited, for example by heat, and leave their shell to go to another! These electrons will go back at ...
8
votes
0answers
151 views

Naming non-cyclic carbon chains

(I'm not a chemist! I might be wrong at some stuff, I'm writing that I've learned in high-school) Carbon atoms have a special attribute: They can bind to 4 other atoms (which is not that special) and ...
42
votes
28answers
3k views

Element names above 118

IUPAC in their insufferable wisdom have created a systematic element name for any newly created element. This is the temporary name of an element until they finally make up their minds about an actual ...
8
votes
0answers
94 views

Find the Chemistry of a name [duplicate]

We all have knowledge of the periodic table, since our days in school. Something most of us have often tried to do is to spell out your name using elements of the table. Your challenge is to do ...
44
votes
12answers
2k views

Molecules to Atoms

The Challenge Write a program that can break down an input chemical formula (see below), and output its respective atoms in the form element: atom-count. Input Sample input: H2O Your input ...
1
vote
1answer
1k views

VSEPR Strikes Back! [Revamped Again]

(Note: I know that the VSEPR method fails sometimes, and that there are exceptional molecules. The challenge is about the molecules which conform.) Most people who have taken an introductory ...
6
votes
1answer
345 views

Find the Formula

Introduction What you have to do is, given an an ASCII diagram of a chemical, output the chemical formula. Rules Your code must not access the internet and may not use a stored library of ...
30
votes
24answers
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
254 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
791 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 ...
41
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. ...
16
votes
6answers
934 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 ...
20
votes
2answers
1k 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
628 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 ...
8
votes
4answers
612 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 ...
14
votes
3answers
3k 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 ...