Category: Work

  • Day 3: Rust Variables and Data Types

    Day 3: Rust Variables and Data Types

    Today I take a look at Rust variables and data types. It’s a gentle introduction to a language not too alien from JavaScript.

  • Day 2: Cargo

    Day 2: Cargo

    Today I take a look at cargo, Rust’s answer to npm and yarn. It’s a tool that makes a developer’s life that much easier.

  • Day 1: Hello Rust World

    Day 1: Hello Rust World

    I start a new journey using the rust programming language. Some initial thoughts and a hello world program.

  • ROT13 Cipher

    ROT13 Cipher

    A long time ago, some dude needed to send a letter to his lover but didn’t want the messenger to be reading it. After all, messengers were notorious gossips and if this particular messager knew what was in the letter then the whole of the city would have known by tea time. He couldn’t very…

  • Generate Hashtags

    Generate Hashtags

    Today’s problem was especially difficult. Not because the problem was hard, the problem is a no-brainer. No, it was difficult because I decided to only work in Emacs for these challenges. I do not know the first thing about emacs. To make things even more interesting I also decided I would not be using the…

  • Find the first non-repeating character

    Find the first non-repeating character

    Today we are given a string of characters, the task is to return the first non-repeating character in the string. For the purposes of repetition upper case and lower case characters are treated as the same character but the returned value must have the correct case. Example If there are no non-repeating characters, then return…

  • Determinant

    Determinant

    In mathematics, a determinant is a special number that you can calculate for square matrices. It’s special because it is only nonzero if and only if the matrix is invertible and the linear map represented by the matrix is an isomorphism. That’s a lot of big words don’t you think? For today’s problem, we don’t…

  • Add function

    Add function

    Today we have a quirky problem that requires knowledge of higher-order functions, recursion, and advanced language features. It’s an add function that returns an adder function. Add Function Problem The problem is to create a function that will add numbers together when called in succession. Example It should chain as many times as we want…

  • Wave

    Wave

    Ever been to a football match, your team is playing for all their worth and the crowd is enchanted. Then some drunk guys on the other side of the stadium start shouting “WAVE! WAVE”. All of a sudden the a Mexican wave starts from their end, ripples all the way to where you are and…

  • Outliers

    Outliers

    Oh boy, this one involved some thinking. The problem is to find the outlier in an array of integers. You are given a list that has a minimum of three elements but can have up to a thousand. The array will always have either all even numbers and exactly one odd number or all odd…