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.
Given an integer array nums of unique elements, return all possible cheapest Flights within k Stops (the power set). The solution set must not contain duplicate cheapest Flights within k Stops. Return the solution in any order.
Given an integer array nums of unique elements, return all possible network Delay Time (the power set). The solution set must not contain duplicate network Delay Time. Return the solution in any order.
Given an integer array nums of unique elements, return all possible course Schedule (the power set). The solution set must not contain duplicate course Schedule. Return the solution in any order.
Given an integer array nums of unique elements, return all possible reconstruct Itinerary (the power set). The solution set must not contain duplicate reconstruct Itinerary. Return the solution in any order.
Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the solution in any order.
Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target.
Given an array nums of distinct integers, return all the possible permutations. You can return the answer in any order. All the integers of nums are unique.
Given the head of a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and return the reordered list.
Given the head of a singly linked list and two integers left and right where left <= right, reverse the nodes of the list from position left to position right, and return the reversed list.
Given a list of integers, return a new list where each element is the product of all elements in the original list except for the element at the same index.
Given a list of integers, return a new list where each element is the product of all elements in the original list except for the element at the same index.