摘要:
Question:Write a function to find the longest common prefix string amongst an array of strings. 问题描述:从一个字符串数组中找出所有字符串的最长前缀。 note:当字符串数组为空时,返回"" LeetCo 阅读全文
摘要:
question:Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not s 阅读全文
摘要:
question:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain 阅读全文
摘要:
question: Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input wou 阅读全文
摘要:
在写一个抓取网页的小脚本,运行起来总是出现这个错误SyntaxError: Non-ASCII character '\xe5' in file D 查了下Python的默认编码文件是用的ASCII码,你将文件存成了UTF-8也没用,解决办法很简单 只要在文件开头加入 # -*- coding: U 阅读全文