Recently, I have been doing 100daysCSS challenges. Right now, I am on day 6 challenge, here is the challenge.
Even though I am quite comfortable with doing CSS for years, still I had some “aha” moments during this challenge. …
Recently, I got a chance to start a React Native project from scratch. Apart from setting it up like the old projects using Redux and its related libraries, I decided to add Immutable.js on the table. …
as a foreigner.
Two weeks ago, I signed an offer with a Canadian company after staying in Vancouver for a week to go for many job interviews. As I am a developer based in Vietnam, getting a job in Canada is extremely difficult due many reasons.
Luckily, I got a…
Create a function that takes an integer N and returns a NxN spiral matrix.// matrix(4)
// [[1, 2, 3, 4],
// [12, 13, 14, 5],
// [11, 16, 15, 6],
// [10, 9, 8, 7]]
This problem might seem quite overwhelming at first, but don’t panic, we will break…
It has been three years and a half since I landed my first job as a front-end developer. Since I came from a non-CS background, this is quite a journey to me. Throughout the course of these years, I have learned many valuable lessons that have shaped me to be…
One of the most common numerical operations is increasing or decreasing a number. Their most prevalent syntax are
++ (increasing) and
-- (decrement). In order to perform an increment or a decrement of a number, there are two ways to do so. For example:
Incrementing a variable by 1
Rotate a 2D array (n x n matrix) 90 degree close-wise without creating a new array. For example:
const A =
[[ 1, 2, 3, 4],
[ 5, 6, 7, 8],
[ 9, 10, 11, 12],
[13, 14, 15, 16]]rotate(A); // a functionOutput:
Each React component comes with several methods that allows developers to update the application state and reflect the change to UI. There are three main phases of a component which including mounting, updating and unmounting.
These methods will be called when an instance of a React component is…