Software Engineering Concepts – Student Guide

SW overview

This post is an illustrated explanation of Software Engineering Concepts and terminologies. It helps you to decide which areas you would like to specialize in. Table of Content Mathematics Systems Programming Networks Data Science Applications Artificial intelligence For your consideration 1. Mathematics Mathematics is an important foundation for all science …

Continue reading

Clean directories using recursion – code

delete files older than n days

Delete files older than n days and remove the empty directories after the files are deleted. This can be done using recursion. Recursion is a technique that a function calls itself.  When the base condition is met, the rest of call stacks return from the last call to the first. …

Continue reading

Sort squares of a sorted array in one pass

sort squares

To sort squares of a sorted array, you don’t want to use any sorting algorithms such as bubble sort. Because it takes O(nlogn) ~ O(n^2) time. Here we introduce a better way to sort in one pass. The solution is using two pointers. Initialize two pointers, one points to the …

Continue reading