摘要:
Description: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 ... 阅读全文
摘要:
Description:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 阅读全文
摘要:
Description:A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and retur... 阅读全文
摘要:
Description:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A... 阅读全文
摘要:
Description:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop(... 阅读全文