Exercises

A collection of 16 posts

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
Exercises

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…

Exercises

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…

Interview

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…

Exercises

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…

Exercises

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
Exercises

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…

Exercises

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…

Exercises

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…

Exercises

CodeWars: Weekly Newsletter 02

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

Exercises

CodeWars: Weekly Newsletter

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…

Exercises

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…

Exercises

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…

Exercises

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…

Exercises

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…

Exercises

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…