Given a linked list, remove the n-th node from the end of list and return its he...
Given a string s, find the longest palindromic substring in s. You may assume th...
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands...
Given a string text, you want to use the characters of text to form as many inst...
Given an array nums of n integers, are there elements a, b, c in nums such that...
Merge two sorted linked lists and return it as a new list. The new list should b...
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', d...
Write a function to find the longest common prefix string amongst an array of st...
Given an array of integers nums sorted in ascending order, find the starting and...
Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3...