摘要:
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word 阅读全文
posted @ 2016-08-10 19:36
snakech
阅读(183)
评论(0)
推荐(0)
摘要:
Write a function to find the longest common prefix string amongst an array of strings. 大意就是,写一个函数可以找到一个数组字符串中的最长前缀。 分析: 最长前缀的最大值为数组字符串中长度最短的字符,由最短字符串由 阅读全文
posted @ 2016-08-10 19:13
snakech
阅读(166)
评论(0)
推荐(0)
摘要:
Implement the following operations of a stack using queues. push(x) -- Push element x onto stack. pop() -- Removes the element on top of the stack. to 阅读全文
posted @ 2016-08-10 18:15
snakech
阅读(244)
评论(0)
推荐(0)

浙公网安备 33010602011771号