LeetCode #1544: Make The String Great

Return the string after making it good. The answer is guaranteed to be unique under the given constraints.

LeetCode #3: Longest Substring Without Repeating Characters

Given a string s, find the length of the longest substring without repeating characters.

LeetCode #4: Median of Two Sorted Arrays

Given two sorted arrays, return the median of the two sorted arrays.

LeetCode #1614: Maximum Nesting Depth of the Parentheses

Given a valid parentheses string represented as string s, return the nesting depth of s.

LeetCode #2: Add Two Numbers

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list

PHP

Prefixes for global functions? Why?

A detailed answer to a popular question that I get asked every time my code is analyzed by co-workers

 · Approx 6 min (1110 words)

LeetCode #1: Two Sum

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.