Sign up
Log in
Home
Language tracks
Julia track
Exercises
Exercises on the Julia track
Join the Julia Track
36 exercises to help you master Julia
easy
Hello World
The classical introductory exercise. Just say "Hello, World!"
strings
easy
Leap
Given a year, report if it is a leap year.
arithmetics
control flow conditionals
integers
easy
Nucleotide Count
Given a DNA string, compute how many times each nucleotide occurs in the string.
chars
control flow loops
strings
easy
Hamming
Calculate the Hamming difference between two DNA strands.
exceptions
generators
strings
easy
RNA Transcription
Given a DNA strand, return its RNA Complement Transcription.
exception handling
filtering
pattern matching
strings
easy
Bob
Bob is a lackadaisical teenager. In conversation, his responses are very limited.
control flow if else statements
strings
unicode
easy
Run Length Encoding
Implement run-length encoding and decoding.
algorithms
strings
text formatting
easy
Pangram
Determine if a sentence is a pangram.
arrays
filtering
strings
easy
Anagram
Given a word and a list of possible anagrams, select the correct sublist.
arrays
control flow loops
filtering
sorting
strings
easy
Rotational Cipher
Create an implementation of the rotational cipher, also sometimes called the Caesar cipher.
metaprogramming
string literals
strings
easy
Atbash Cipher
Create an implementation of the atbash cipher, an ancient encryption system created in the Middle East.
control flow conditionals
control flow loops
strings
easy
Difference Of Squares
Find the difference between the square of the sum and the sum of the squares of the first N natural numbers.
generators
math
easy
Pascal's Triangle
Compute Pascal's triangle up to a given number of rows.
control flow conditionals
exceptions
integers
math
easy
Raindrops
Convert a number to a string, the contents of which depend on the number's factors.
arrays
control flow loops
strings
easy
Scrabble Score
Given a word, compute the scrabble score for that word.
arrays
control flow conditionals
control flow loops
strings
easy
Word Count
Given a phrase, count the occurrences of each word in that phrase.
arrays
control flow loops
strings
easy
Luhn
Given a number determine whether or not it is valid per the Luhn formula.
arithmetics
control flow conditionals
strings
easy
Roman Numerals
Write a function to convert from normal numbers to Roman Numerals.
control flow loops
strings
easy
Isogram
Determine if a word or phrase is an isogram.
arrays
control flow conditionals
control flow loops
strings
easy
ETL
We are going to do the `Transform` step of an Extract-Transform-Load.
arrays
sorting
strings
easy
Collatz Conjecture
Calculate the number of steps to reach 1 using the Collatz conjecture
control flow exceptions
control flow if else statements
math
easy
Sieve
Use the Sieve of Eratosthenes to find all the primes from 2 up to a given number.
arrays
control flow conditionals
control flow loops
filtering
math
easy
Trinary
Convert a trinary number, represented as a string (e.g. '102012'), to its decimal equivalent using first principles.
arrays
integers
strings
math
easy
Secret Handshake
Given a decimal number, convert it to the appropriate sequence of events for a secret handshake.
arrays
filtering
easy
Phone Number
Clean up user-entered phone numbers so that they can be sent SMS messages.
conditionals
pattern matching
regular expressions
strings
easy
Triangle
Determine if a triangle is equilateral, isosceles, or scalene.
conditionals
functional abstraction
easy
Transpose
Take input text and output it transposed.
arrays
control flow conditionals
control flow loops
strings
medium
Robot Name
Manage robot factory settings.
randomness
strings
structs
easy
Gigasecond
Calculate the moment when someone has lived for 10^9 seconds.
dates
medium
Robot Simulator
Write a robot simulator.
structs
hard
Complex Numbers
Implement complex numbers.
function extension
methods
multiple dispatch
structs
math
hard
Custom Set
Create a custom set type.
function extension
iterators
methods
multiple dispatch
parametric types
types
easy
Grains
Calculate the number of grains of wheat on a chessboard given that the number on each square doubles.
exceptions
easy
Spiral Matrix
Given the size, return a square matrix of numbers in spiral order.
matrix
iterators
medium
ISBN Verifier
Check if a given string is a valid ISBN-10 number.
arithmetics
control flow conditionals
metaprogramming
strings
structs
easy
Armstrong Numbers
Determine if a number is an Armstrong number
arithmetics
integers
math