My solutions to Exercism Go track exercises. Each folder is a self-contained exercise (previously a separate repository, now consolidated here).
63 exercises
| Exercise | Description |
|---|---|
airport-robot |
The robot can greet people in their native language after they scanned their passports at the self-check-in counter |
anagram |
Given a target word and a set of candidate words, this exercise requests the anagram set: the subset of the candidates that are anagrams of the target. |
animal-magic |
A new children's game that features animals and magic wands |
annalyns-infiltration |
Implementing the quest logic for a new RPG game a friend is developing |
bank-account |
Simulate a bank account supporting opening/closing, withdrawals, and deposits of money. |
bird-watcher |
Keep track of how many birds have visited your garden |
blackjack |
Simulate the first turn of a Blackjack game |
bob |
Bob is a lackadaisical teenager. In conversation, his responses are very limited. |
book-store |
Calculate the price of any conceivable shopping basket, giving as big a discount as possible. |
booking-up-for-beauty |
An appointment scheduler for a beauty salon |
card-tricks |
Elyse has a stack of cards that she wants to manipulate. |
cars-assemble |
Analyze the production in a car factory |
census |
The city's IT system for an upcoming census |
chessboard |
The own version of the game |
clock |
Implement a clock that handles times without dates. |
darts |
A function that returns the earned points in a single toss of a Darts game |
difference-of-squares |
Find the difference between the square of the sum and the sum of the squares of the first N natural numbers. |
election-day |
A new digital system to count the votes |
elons-toys |
Organizing races between various types of remote controlled cars |
error-handling |
Implement various kinds of error handling and resource management |
etl |
We are going to do the Transform step of an Extract-Transform-Load. |
expenses |
A program to help Bob manage and analyze the expenses of his clients |
grains |
Calculate the number of grains of wheat on a chessboard given that the number on each square doubles. |
gross-store |
Implement a point of sale (POS) system for a store |
hamming |
Calculate the Hamming Distance between two DNA strands. |
hello-world |
The classical introductory exercise. Just say "Hello, World!". |
interest-is-interesting |
Working with savings accounts |
isogram |
Determine if a word or phrase is an isogram. |
lasagna |
In this exercise you're going to write some code to help you cook a brilliant lasagna from your favorite cooking book. |
lasagna-master |
Preparing and cooking your brilliant lasagna from your favorite cookbook |
leap |
Given a year, report if it is a leap year. |
logs-logs-logs |
A log library to assist with managing your organisation's logs |
luhn |
Given a number determine whether or not it is valid per the Luhn formula. |
matrix |
Given a string representing a matrix of numbers, return the rows and columns of that matrix |
meteorology |
Add suitable String methods to all types so that they implement interface Stringer |
need-for-speed |
Races between various types of remote controlled cars |
nucleotide-count |
Given a string representing a DNA sequence, count how many of each nucleotide is present |
pangram |
Determine if a sentence is a pangram |
parallel-letter-frequency |
Count the frequency of letters in texts using parallel computation. |
parsing-log-files |
Parsing of log files |
party-robot |
A party robot supposed to greet people and help them to their seats |
protein-translation |
Translate RNA sequences into proteins. |
proverb |
Given a list of inputs, generate the relevant proverb. |
raindrops |
Convert a number into a string that contains raindrop sounds corresponding to certain potential factors. |
reverse-string |
Reverse a string |
rna-transcription |
Given a DNA strand, return its RNA complement |
robot-name |
Manage robot factory settings |
roman-numerals |
A function to convert from normal numbers to Roman Numerals |
scrabble-score |
Given a word, compute the Scrabble score for that word. |
sorting-room |
The sorting room needs to process anything that comes into it by categorising it with a label |
space-age |
Given an age in seconds, calculate how old someone would be on. |
strain |
Implement the keep and discard operation on collections. |
sum-of-multiples |
Calculate the energy points that get awarded to players when they complete a level |
the-farm |
A food dispenser |
tournament |
Tally the results of a small football competition |
tree-building |
Implement the tree building logic for flat structure records |
triangle |
Determine if a triangle is equilateral, isosceles, or scalene. |
twelve-days |
Output the lyrics to 'The Twelve Days of Christmas' |
two-fer |
Two-fer or 2-fer is short for two for one. One for you and one for me. |
vehicle-purchase |
Help you prepare to buy a vehicle |
weather-forecast |
Forecast the current weather condition of various cities in Goblinocus |
welcome-to-tech-palace |
Generate the text for the new display |
word-count |
Count how many times each word occurs in a subtitle of a drama |