Given an array of integers nums sorted in ascending order, find the starting and ending...
Given an array of integers nums sorted in ascending order, find the starting and ending...
Suppose an array sorted in ascending order is rotated at some pivot unknown to you befo...
Given an array nums of n integers and an integer target, find three integers in nums su...
Given an array nums of n integers, are there elements a, b, c in nums such that a + b +...
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordi...
Given an integer array nums, find the contiguous subarray (containing at least one numb...
Find the kth largest element in an unsorted array. Note that it is the kth largest elem...
Given n, how many structurally unique BST's (binary search trees) that store values 1 ....
Given an array where elements are sorted in ascending order, convert it to a height bal...
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (...
Given two binary trees, write a function to check if they are the same or not. Two bina...
Given a linked list, swap every two adjacent nodes and return its head.You may not modi...
Given a linked list and a value x, partition it such that all nodes less than x come be...
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only ...
Given a linked list, remove the n-th node from the end of list and return its head. Exa...
Given a non-empty, singly linked list with head node head, return a middle node of link...
Given a sorted linked list, delete all duplicates such that each element appear only on...
Merge two sorted linked lists and return it as a new list. The new list should be made ...
Given a singly linked list, determine if it is a palindrome. Example 1: Input: 1->2Outp...
Reverse a singly linked list. Example: Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1-...