LeetCode Excel Sheet Column Number Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3 ... Z ->... Read More

# Monthly Archives: November 2016

# LeetCode Excel Sheet Column Title

LeetCode Excel Sheet Column Title Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 ->... Read More

# LeetCode Linked List Cycle II

LeetCode Linked List Cycle II 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 solve it without using extra space? 本题在LeetCode Linked List... Read More

# LeetCode Linked List Cycle

LeetCode Linked List Cycle Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra... Read More

# LeetCode Single Number

LeetCode Single Number Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra... Read More

# LeetCode Palindrome Linked List

LeetCode Palindrome Linked List Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space? 本题要判断一个单向链表是否为回文链表。之前LeetCode Valid... Read More

# LeetCode Valid Palindrome

LeetCode Valid Palindrome Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a palindrome. Note: Have you... Read More

# LeetCode Edit Distance

LeetCode Edit Distance Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have the following 3 operations permitted on a word: a) Insert a character b) Delete... Read More

# LeetCode Majority Element II

LeetCode Majority Element II Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space. Hint: How many majority elements could it possibly have? Do you have a... Read More

# LeetCode Majority Element

LeetCode Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty and the majority element always exist in the... Read More