Algorithm / Leet Code Easy

[Swift] Valid Palindrome

September 18 2022

A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same fo...

[Swift] Missing Number

July 13 2022

Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.

[Swift] Maximum Subarray

May 06 2022

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