Basic Algorithms For Leetcode Problems