about | help | code help+videos | done | prefs |
Pig Latin: Given a single word of at least 1 character, that can optionally have a punctuation mark afterwards. (Any non-letter, non-number symbol after the word) The punctuation must remain after the word. words that start with a,e, i,o,u -> add 'hay' to the end of the word words that start with any digraph (list included for your convenience) move the first two letters to the end and add 'ay' other words, move the first letter to the end, and add 'ay' to the word. Digraphs: ['bl', 'br', 'ch', 'ck', 'cl', 'cr', 'dr', 'fl', 'fr', 'gh', 'gl', 'gr', 'ng', 'ph', 'pl', 'pr', 'qu', 'sc', 'sh', 'sk', 'sl', 'sm', 'sn', 'sp', 'st', 'sw', 'th', 'tr', 'tw', 'wh', 'wr'] pigLatinBest('fish!') → 'ishfay!' pigLatinBest('dog.') → 'ogday.' pigLatinBest('cat!') → 'atcay!' ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy