摘要: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators a 阅读全文
posted @ 2019-04-15 21:21 Veritas_des_Liberty 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can f 阅读全文
posted @ 2019-04-15 19:14 Veritas_des_Liberty 阅读(166) 评论(0) 推荐(0) 编辑
摘要: The key of Kmp is to build a look up table that records the match result of prefix and postfix. Value in the table means the max len of matching subst 阅读全文
posted @ 2019-04-15 17:40 Veritas_des_Liberty 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, w 阅读全文
posted @ 2019-04-15 14:40 Veritas_des_Liberty 阅读(156) 评论(0) 推荐(0) 编辑