[Swift] Reverse Linked List
Given the head of a singly linked list, reverse the list, and return the reversed list.
Given the head of a singly linked list, reverse the list, and return the reversed list.
Given the root of a binary tree, return the preorder traversal of its nodes’ values.
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...
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.
You are given an array prices where prices[i] is the price of a given stock on the i$^{th}$ day.
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Implement strStr.
Write a function to find the longest common prefix string amongst an array of strings.
Valid Parentheses