摘要:
题目:Given a linked list, remove thenthnode from the end of list and return its head.For example: Given linked list: 1->2->3->4->5, and n = 2. After... 阅读全文
摘要:
题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two... 阅读全文
摘要:
题目:Given an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may assume that the ... 阅读全文
摘要:
题目:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sing... 阅读全文