14. Longest Common Prefix
Write a function to find the longest common prefix stri... » 阅读全文
Write a function to find the longest common prefix stri... » 阅读全文
The count-and-say sequence is the sequence of integers ... » 阅读全文
You are climbing a stair case. It takes n steps to reac... » 阅读全文
Determine whether an integer is a palindrome. An intege... » 阅读全文
Given a 32-bit signed integer, reverse digits of an int... » 阅读全文
Given n non-negative integers a_1, a_2, ..., a_n, where... » 阅读全文
Say you have an array for which the ith element is the ... » 阅读全文
Given a binary tree, find the lowest common ancestor (L... » 阅读全文
Given an array of size n, find the majority element. Th... » 阅读全文
Given a 2D binary matrix filled with 0’s and 1... » 阅读全文