## [Leetcode] Find the Duplicate Number

Find a duplicate in an array with some other requirements.

Find a duplicate in an array with some other requirements.

Rotate an array of n elements to the right by k steps.

Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.

Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.

Given an array of integers, every element appears three times except for one. Find that single one.

Given an array for which the ith element is the price of a given stock on day i, design an algorithm to find the maximum profit if you may complete at most 2 transactions.

Given an array for which the ith element is the price of a given stock on day i, design an algorithm to find the maximum profit if you may complete at most k transactions.