Tag: Development

  • Day 5: Counting Bits

    Day 5: Counting Bits

    Today I take a break from reading and tackle the simple problem of counting bits in Rust. This is my first Rust solution.

  • Day 4: Rust Functions and loops

    Day 4: Rust Functions and loops

    Today I’m looking at functions and loops. They are an important part of any language and deserve a closer look.

  • 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…

  • 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…