題目: Given the heads of two singly linked-lists headA and headB, return the node...
題目: Design a stack that supports push, pop, top, and retrieving the minimum ele...
題目: Given the root of a binary tree, return the postorder traversal of its node...
題目: Given the root of a binary tree, return the preorder traversal of its nodes...
題目: Given head, the head of a linked list, determine if the linked list has a c...
題目: Given a non-empty array of integers nums, every element appears twice excep...
題目: A phrase is a palindrome if, after converting all uppercase letters into lo...
題目: You are given an array prices where prices[i] is the price of a given stock...
題目: Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pas...
題目: Given an integer numRows, return the first numRows of Pascal's triangle....
題目: Given the root of a binary tree and an integer targetSum, return true if th...
題目: Given a binary tree, find its minimum depth. The minimum depth is the num...
題目: Given a binary tree, determine if it is height-balanced. 給定一個binary tree,判...
題目: Given an integer array nums where the elements are sorted in ascending orde...
題目: Given the root of a binary tree, return its maximum depth. A binary tree'...
題目: Given the root of a binary tree, check whether it is a mirror of itself (i....
題目: Given the roots of two binary trees p and q, write a function to check if t...
題目: Given the root of a binary tree, return the inorder traversal of its nodes'...
題目: You are given two integer arrays nums1 and nums2, sorted in non-decreasing...
題目: Given the head of a sorted linked list, delete all duplicates such that eac...
題目: You are climbing a staircase. It takes n steps to reach the top. Each tim...
題目: Given a non-negative integer x, compute and return the square root of x....
題目: Given two binary strings a and b, return their sum as a binary string. 給定兩...
題目: You are given a large integer represented as an integer array digits, where...
題目: Given a string s consisting of words and spaces, return the length of the l...
題目: Given an integer array nums, find the contiguous subarray (containing at le...
題目: Given a string s, find the length of the longest substring without repeatin...
題目: Given a sorted array of distinct integers and a target value, return the in...
題目: Given two strings needle and haystack, return the index of the first occurr...
題目: Given an integer array nums and an integer val, remove all occurrences of v...