Learn Binary Search in this exciting guide!

Last Updated: October 16, 2020


Right before we begin, if you missed out on the previous episode, here’s Kadane’s Algorithm:


Part 1: The Concept of Searching

Learn all about Kadane’s Algorithm in this fun and exciting guide!

Last Updated: October 10, 2020


Right before we begin, if you missed out on the previous episode, here’s Floyd’s Cycle Detection Algorithm:

Problem: Maximum Subarray Problem

Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.

Example 1:

Input: nums = [-2,1,-3,4,-1,2,1,-5,4]
Output: 6
Explanation: [4,-1,2,1] has the largest subarray sum = 6.

Example 2:

Input: nums = [-2147483647]
Output: -2147483647

Understanding the Problem

Learn about Floyd’s Cycle Detection Algorithm!

Last Updated: March 8, 2021


Right before we begin, if you missed out on the previous episode, here’s the Euclidean Algorithm article:

The Problem Statement

Given a linked list, determine if it has a cycle in it.

To represent a cycle in the given linked list, we use an integer pos which represents the position (0-indexed) in the linked list where the tail connects to. If pos == -1, then there is no cycle in the linked list.

Want to read this story later? Save it in Journal.


Learn all about the Euclidean Algorithm and how to implement it in this fun and exciting illustrated guide!

Last Updated: September 18, 2020


Review: Greatest Common Divisor (GCD)

Factors of 21: 1, 3, 7, 21

Factors of 28: 1…

Hello world, it’s Aaron!

In this article, we will be installing NVIDIA CUDA and TensorFlow GPU 2.2.0-rc2!

Image Copyright TensorFlow.


Image Copyright Udacity.

Tip #1: Read Udacity’s Project Rubrics!

Tip #2: Time Management

This is the first part of the 2 part series by Aaron Ma on the summary of Hands-On ML.

Pinterest image. Copyright Aerolien Geron and respective authors.

So you may have come across the image on the left: Hands-on ML with Scikit-Learn, Keras & TensorFlow by Aurelien Geron. I’ve just finished reading his book, and I’ve decided to create a neat little summary of his book.

I. The Fundamentals of Machine Learning

  • What ML is, the difference between Traditional Learning and ML, etc.
  • Typical steps in training…

Hello world, it’s Aaron! Today I’ll be talking about TensorFlow 2’s amazing tf.tpu API.

NOTE: The version of TensorFlow I’m using is TensorFlow 2.1. The Python version I’m using is 3.7. I’ll also periodically update the TensorFlow & Python version used here to match the most recent releases.

Image copyright TensorFlow

What is TensorFlow?

What is TPU?

Copyright by Brilliant.

A few days ago, I received Brilliant from a friend. I practiced solving some problems on Brilliant with the Premium subscription, and I loved it! Here’s my recap & review of Brilliant Premium. Finish reading this to get a discount on Brilliant Premium!

What is Brilliant?

Copyright The Audiopedia

Hello, world, it’s Aaron! In this blog, I’ll be talking about an in-place algorithm, which modifies data structures or objects outside of its stack frame. An out-of-place function does not make any changes that are visible to other functions. Usually, these functions copy data structures or objects before it manipulates or changes them. Let’s take a look into this with some examples.

Thanks for reading and have a great day!

-Aaron Ma https://aaronhma.com

Aaron Ma

Living in The Milky Way 😀

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store