#BlackLivesMatter Support An Initiative

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;

The command  above doesn’t work anymore in Linux Mint 20 Ulyana because the Snap package manager has been blocked. The chromium repository package installs an …

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:

Example 2:

Note: …

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 »

A Singly Linked List Implementation In Javascript

Once you start exploring data structures outside of arrays, you’ll probably if not certainly bump into lists first. A list is an abstract data type (a type for objects whose behaviour is defined by a set of value and a set of operations) that represents a countable number of ordered values, where the same value …

A Singly Linked List Implementation In Javascript Read More »

welcome to the blog

Welcome to The Blog!

Hi there! I recently started brushing up on my data structures and algorithms, and found out I had forgotten most of what I learned during my computer science university days. I wanted to revise these concepts, which could be helpful in developing optimal solutions. A bit of a background: I am a software engineer and …

Welcome to The Blog! Read More »