My solutions for Go track at Exercism.
exercism download --exercise=leap --track=go # Download locally
cd "C:\Users\mdrrahman\Exercism\go\leap" # CD in
# Write your code in leap.go
go test -v --bench . --benchmem # Test locally
exercism submit XXXX.go # Submit
Exercise | Status | Description |
---|---|---|
Error Handling | Completed |
Implement various kinds of error handling and resource management |
Bank Account | Completed |
Simulate a bank account supporting opening/closing, withdraws, and deposits of money. Watch out for concurrent transactions! |
Proverb | Completed |
For want of a horseshoe nail, a kingdom was lost, or so the saying goes. Output the full text of this proverbial rhyme. |
Nucleotide Count | Compleetd |
Given a DNA string, compute how many times each nucleotide occurs in the string. |
Rna Transcription | Completed |
Given a DNA strand, return its RNA Complement Transcription. |
Roman Numerals | Completed |
Write a function to convert from normal numbers to Roman Numerals. |
Strain | Completed |
Implement the keep and discard operation on collections. Given a collection and a predicate on the collection's elements, keep returns a new collection containing those elements where the predicate is true, while discard returns a new collection containing those elements where the predicate is false. |
Etl | Completed |
We are going to do the Transform step of an Extract-Transform-Load. |
Protein Translation | Completed |
Translate RNA sequences into proteins. |
Pangram | Completed |
Determine if a sentence is a pangram. |
Reverse String | Completed |
Reverse a string |
Anagram | Completed |
Given a word and a list of possible anagrams, select the correct sublist. |
Word Count | Completed |
Given a phrase, count the occurrences of each word in that phrase. |
Run Length Encoding | Completed |
Implement run-length encoding and decoding. |
Isbn Verifier | Completed |
Check if a given string is a valid ISBN-10 number. |
Largest Series Product | Completed |
Given a string of digits, calculate the largest product for a contiguous substring of digits of length n. |
Nth Prime | Completed |
Given a number n, determine what the nth prime is. |
Pythagorean Triplet | Completed |
There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product a _ b _ c. |
Sum Of Multiples | Completed |
Given a number, find the sum of all the multiples of particular numbers up to but not including that number. |
Rotational Cipher | Completed |
Create an implementation of the rotational cipher, also sometimes called the Caesar cipher. |
Atbash Cipher | Completed |
Create an implementation of the atbash cipher, an ancient encryption system created in the Middle East. |
Crypto Square | Completed |
Implement the classic method for composing secret messages called a square code. |
Simple Cipher | Completed |
Implement a simple shift cipher like Caesar and a more secure substitution cipher |
Diffie Hellman | Completed |
Diffie-Hellman key exchange. |
All Your Base | Completed |
Convert a number, represented as a sequence of digits in one base, to any other base. |
Sieve | Completed |
Use the Sieve of Eratosthenes to find all the primes from 2 up to a given number. |
Allergies | Completed |
Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies. |
Perfect Numbers | Completed |
Determine if a number is perfect, abundant, or deficient based on Nicomachus' (60 - 120 CE) classification scheme for positive integers. |
Secret Handshake | Completed |
Given a decimal number, convert it to the appropriate sequence of events for a secret handshake. |
Variable Length Quantity | Completed |
Implement variable length quantity encoding and decoding. |
Armstrong Numbers | Completed |
Determine if a number is an Armstrong number |
Meetup | Completed |
Calculate the date of meetups. |
Phone Number | Completed |
Clean up user-entered phone numbers so that they can be sent SMS messages. |
Prime Factors | Completed |
Compute the prime factors of a given natural number. |
Pig Latin | Completed |
Implement a program that translates from English to Pig Latin |
Series | Completed |
Given a string of digits, output all the contiguous substrings of length n in that string. |
Ledger | Completed |
Refactor a ledger printer. |
Linked List | Completed |
Implement a doubly linked list |
Rail Fence Cipher | Completed |
Implement encoding and decoding for the rail fence cipher. |
Binary Search | Completed |
Implement a binary search algorithm. |
Binary Search Tree | Completed |
Insert and search for numbers in a binary tree. |
Two Bucket | Completed |
Given two buckets of different size, demonstrate how to measure an exact number of liters. |
Matching Brackets | Completed |
Make sure the brackets and braces all match. |
Pov | Completed |
Reparent a graph on a selected node |
Wordy | Completed |
Parse and evaluate simple math word problems returning the answer as an integer. |
Palindrome Products | Completed |
Detect palindrome products in a given range. |
Say | Completed |
Given a number from 0 to 999,999,999,999, spell out that number in English. |
Kindergarten Garden | Completed |
Given a diagram, determine which plants each child in the kindergarten class is responsible for. |
Diamond | Completed |
Given a letter, print a diamond starting with 'A' with the supplied letter at the widest point. |
Grep | Completed |
Search a file for lines matching a regular expression pattern. Return the line number and contents of each matching line. |
Pascals Triangle | Completed |
Compute Pascal's triangle up to a given number of rows. |
Rectangles | Completed |
Count the rectangles in an ASCII diagram. |
Yacht | Not started |
Score a single throw of dice in the game Yacht |
Bowling | Not started |
Score a bowling game |
Poker | Not started |
Pick the best hand(s) from a list of poker hands. |
Ocr Numbers | Not started |
Given a 3 x 4 grid of pipes, underscores, and spaces, determine which number is represented, or whether it is garbled. |
Beer Song | Completed |
Produce the lyrics to that beloved classic, that field-trip favorite: 99 Bottles of Beer on the Wall. |
Food Chain | Completed |
Generate the lyrics of the song 'I Know an Old Lady Who Swallowed a Fly' |
House | Completed |
Output the nursery rhyme 'This is the House that Jack Built'. |
Markdown | Not started |
Refactor a Markdown parser |
Sublist | Completed |
Write a function to determine if a list is a sublist of another list. |
Spiral Matrix | Completed |
Given the size, return a square matrix of numbers in spiral order. |
Word Search | Completed |
Create a program to solve a word search puzzle. |
Minesweeper | Completed |
Add the numbers to a minesweeper board |
Queen Attack | Completed |
Given the position of two queens on a chess board, indicate whether or not they are positioned so that they can attack each other. |
Saddle Points | Completed |
Detect saddle points in a matrix. |
Transpose | Completed |
Take input text and output it transposed. |
Connect | Not started |
Compute the result for a game of Hex / Polygon |
Flatten Array | Completed |
Take a nested list and return a single list with all values except nil/null |
Custom Set | Not started |
Create a custom set type. |
Dominoes | Not started |
Make a chain of dominoes. |
Simple Linked List | Not started |
Write a simple linked list implementation that uses Elements and a List |
Alphametics | Not started |
Write a function to solve alphametics puzzles. |
Circular Buffer | Not started |
A data structure that uses a single, fixed-size buffer as if it were connected end-to-end. |
Book Store | Not started |
To try and encourage more sales of different books from a popular 5 book series, a bookshop has decided to offer discounts of multiple-book purchases. |
Change | Not started |
Correctly determine change to be given using the least number of coins |
Grade School | Completed |
Given students' names along with the grade that they are in, create a roster for the school |
Paasio | Not started |
Report network IO statistics |
Robot Simulator | Not started |
Write a robot simulator. |
Zebra Puzzle | Not started |
Solve the zebra puzzle. |
Forth | Not started |
Implement an evaluator for a very simple subset of Forth |
React | Not started |
Implement a basic reactive system. |
Collatz Conjecture | Completed |
Calculate the number of steps to reach 1 using the Collatz conjecture |
Gigasecond | Completed |
Given a moment, determine the moment that would be after a gigasecond has passed. |
Bob | Completed |
Bob is a lackadaisical teenager. In conversation, his responses are very limited. |
Darts | Completed |
Write a function that returns the earned points in a single toss of a Darts game |
Acronym | Completed |
Convert a long phrase to its acronym |
List Ops | Completed |
Implement basic list operations |
Scale Generator | Completed |
Generate musical scales, given a starting note and a set of intervals. |