摘要:
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr 阅读全文
摘要:
Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. In Pascal's triangle, each number is the sum of the two numbers 阅读全文
摘要:
Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4->5, and n = 2. After removi 阅读全文
摘要:
Write a program to find the node at which the intersection of two singly linked lists begins. Write a program to find the node at which the intersecti 阅读全文
摘要:
Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the linked list. Follow up:Can you 阅读全文
摘要:
Given a linked list, determine if it has a cycle in it. Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without usi 阅读全文
摘要:
In a given integer array nums, there is always exactly one largest element. In a given integer array nums, there is always exactly one largest element 阅读全文
摘要:
Given an array of integers nums, write a method that returns the "pivot" index of this array. Given an array of integers nums, write a method that ret 阅读全文