Hiking Kjerag (Kjeragbolten) in Norway and Driving from Berlin to Kristiansand in a Van

Driving from Berlin to Kristiansand (Norway) Our journey to Norway from starts from Berlin, in late June, 2022. We drove a van from Berlin through Denmark, took a ferry from Hirtshals and then to Kristiansand. We left Berlin around 3pm, drove through Hamburg where we took a 30 minute break to pickup a jackery and …

Hiking Kjerag (Kjeragbolten) in Norway and Driving from Berlin to Kristiansand in a Van Read More »

How To Enable Snap to Install Chromium on Linux Mint 20 (Ulyana)

Before all the politics around the snap Linux package manager, you could easily install the chromium browser among other things by simply typing this below command in a terminal; sudo apt install chromium-browser The command  above doesn’t work anymore in Linux Mint 20 Ulyana because the Snap package manager has been blocked. The chromium repository …

How To Enable Snap to Install Chromium on Linux Mint 20 (Ulyana) Read More »

[Fun Builds] – Black Lives Matter Solidarity Banner for WordPress

The past weeks have been tough for most black people around world, especially African Americans, given the racial injustice and systemic racism ongoing in the United States for centuries and recently brought into the limelight once again, due to the unfortunate murder of George Floyd. A lot has happened and everyone is trying to find …

[Fun Builds] – Black Lives Matter Solidarity Banner for WordPress Read More »

[Fun Builds] – hooks.dev – A Developer Tool For Testing And Debugging HTTP Requests

Javascript has become the programming language to learn for both front and backend engineering, and even game development. With many powerful frameworks leveraging the growing language, I had some experience with frontend development using Reactjs and the good old jQuery, and became interested in diving into the backend world of JS. The most common environment …

[Fun Builds] – hooks.dev – A Developer Tool For Testing And Debugging HTTP Requests Read More »

Algorithms: Adjacent Element Products

Hi there :), our question for today is from code signal, and it’s an easy problem. Given an array of integers, find the pair of adjacent elements that has the largest product and return that product. Example For inputArray = [3, 6, -2, -5, 7, 3], the output should be adjacentElementsProduct(inputArray) = 21. 7 and 3 produce the largest …

Algorithms: Adjacent Element Products Read More »

Leetcode – Robot Return To Origin Problem: Solution in Javascript and PHP

Robot Return To Origin Problem: Solution in Javascript and PHP

  Question There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0) after it completes its moves. The move sequence is represented by a string, and the character moves[i] represents its ith move. Valid moves are R …

Robot Return To Origin Problem: Solution in Javascript and PHP Read More »

The Longest Common Prefix Amongst An Array of Strings – Implementation in Javascript and PHP

Today, we’ll take a look at another easy problem on leetcode, finding the longest common prefix string amongst an array of strings. Question Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string “”. Example 1: Input: [“flower”,”flow”,”flight”] Output: “fl” Example …

The Longest Common Prefix Amongst An Array of Strings – Implementation in Javascript and PHP Read More »

Two Approaches to Solving The TwoSum Problem – Easy Javascript Implementation

If you’ve been practicing some data structures and algorithms, then you have probably come across the TwoSum problem. It’s a popular and easy question to help you get started. The problem can be asked in multiple ways. We’ll go for the generic question as seen on leetcode. Question Given an array of integers, return indices of …

Two Approaches to Solving The TwoSum Problem – Easy Javascript Implementation Read More »