1. Entry Node of a Loop in a Linked Listhistorical

    Given a linked list, if it contains a cycle, find the entry node of the cycle; otherwise, return null.

  2. Best Time to Buy and Sell Stockhistorical

    Given daily stock prices, find the maximum profit from a single purchase followed by a single sale.

  3. First Common Node of Two Linked Listshistorical

    Given two linked lists, find their first common node. (Note: because the input data is provided as linked lists, invalid test data may be displayed in other ways; the input data is guaranteed to be valid.).

  4. Rotate Imagehistorical

    Given an n x n two-dimensional matrix matrix representing an image, rotate the image 90 degrees clockwise.

  5. Delete Duplicate Nodes in a Linked Listhistorical

    In a sorted linked list, duplicate nodes may exist. Delete all duplicate nodes from the list without retaining any duplicate occurrence, and return the head pointer.

  6. Implement Trie (Prefix Tree)historical

    Implement a Trie (prefix tree) with the three operations insert, search, and startsWith.

  7. Postorder Traversal Sequence of a Binary Search Treehistorical

    Given an integer array, determine whether it is the postorder traversal result of a binary search tree. Return true if it is, otherwise return false. Assume that any two numbers in the input array are distinct.

  8. Unique Binary Search Treeshistorical

    Given an integer n, determine how many binary search trees can be formed using nodes 1 ... n.

  9. Next Node in a Binary Treehistorical

    Given a binary tree and one of its nodes, find and return the next node in inorder traversal order. Note that each tree node contains not only left and right child pointers, but also a pointer to its parent.

  10. Binary Tree Inorder Traversalhistorical

    Given the root root of a binary tree, return its inorder traversal.