Skip to main content
1. Two Sum

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. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order.


LZXAbout 1 minLeetCodeEasyArrayHashMap
105. Construct Binary Tree from Preorder and Inorder Traversal

105. Construct Binary Tree from Preorder and Inorder Traversal

題目 連結

Given two integer arrays preorder and inorder where >preorder is the preorder traversal of a binary tree and >inorder is the inorder traversal of the same tree, >construct and return the binary tree.


LZXAbout 1 minLeetCodeMediumHashMapTree