摘要:
Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3-> 阅读全文
摘要:
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu 阅读全文
摘要:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet 阅读全文
摘要:
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit 阅读全文
摘要:
Lust for victory will not give you the victory. You must receive the victory from your opponent. He has no choice but to give it to you because he wil 阅读全文
摘要:
Given an integer, write a function to determine if it is a power of three. Follow up: Could you do it without using any loop / recursion? 其他: Method 1 阅读全文