Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice ...
Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference between nums i and nums j is at most t and the difference between i and j is ...
2015-06-01 23:33 16 22142 推荐指数:
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice ...
Given an array of integers and an integer k, find out whether there are two distinct indices i an ...
Contains Duplicate III Given an array of integers, find out whether there are two distinct indices i and j in the array such that the difference ...
There is a ball in a maze with empty spaces and walls. The ball can go through empty spaces by ro ...
Given an array of numbers nums, in which exactly two elements appear only once and all the other ...
Find all possible combinations of k numbers that add up to a number n, given that only numbers ...
There are n different online courses numbered from 1 to n. Each course has some duration(course l ...
Implement a MyCalendarThree class to store your events. A new event can always be added. You ...