Exercises

A Comprehensive Guide to the FizzBuzz-Problem

Lets explore the classic FizzBuzz-Problem. What is the problem? What is a potential solution? Should you use it in an interview context? The…

• HappyNeal

Technical Interview - Find Pairs in Array

Here are my notes on a recent Frontend Dev - ReactJS job. There are a lot of lessons learned. Before the Interview I was asked that I…

Riddler Challenge 01: The case with the switch

The riddler did it again. He used his superior knowledge of JavaScript to create this incredible piece of code: Take your time to appreciate…

Lessons Learned from an awkward Technical Interview

I recently had a rather odd interview with a fintech company. The main goal was to figure out what my React skills are. It was a online live…

A case of premature optimization?

Recently I ran into an interesting problem in a live coding session. The interviewer found a problem with my code and asked me to improve…

Job Interview - React Coding Challenge

I successfully completed this job interview coding challenge. It’s going to be interesting to look at the questions and solutions. I will go…

• HappyNeal

Interesting JavaScript Interview Question

What is the output of following piece of code? The simple answer for this question is: However to get to this answer you have to…

CodeWars - Catching Car Mileage Numbers

Problem You need to identify “interesting” numbers. When the number is interesting return 2, if it is “near” an interesting number return…

CodeWars - Unlucky Days

Problem The question is basically count the number of instances of Friday the 13th in a given year. Original Problem: https://www.codewars…

8kyu - Logic Drills: Traffic light You need a function to handle each change from green, to yellow, to red, and then to green again…

8kyu - positiveSum The first question is to sum up all the positive integers in an array. Basically two things need to be done: Filter out…

CodeWars: 6kyu – Counting Bits

You got numbers, you want to know how many bits are flipped to a 1 Source: https://www.codewars.com/kata/bit-counting/train/python Approach…

CodeWars: 7kyu – The Highest Profit wins

I am exercising to get back into Python. Even though the solution to this exercise is quite straightforward, you could tweak the code a…

Codewars: Sum Of Pairs

Given a list of integers and a single sum value, return the first two values (parse from the left please) in order of appearance that add up…

CodeWars Kata: File Path Operations

The problems in this Kata File-Path-Operations revolve around implementing common filename functions. Functions are needed to find the file…

Exercise of the Day: Determine if String Halves Are Alike

Problem: You are given a string s of even length. Split this string into two halves of equal lengths. Two strings are alike if they have the…