摘要: 题目: Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. 确定整数是否是回文。 当它向前读取向后时,整数是回文。 E 阅读全文
posted @ 2018-08-31 16:11 chan_ai_chao 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substring together. You m 阅读全文
posted @ 2018-08-31 14:34 chan_ai_chao 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target. 给定一个整数数组,返回两个数字的索引,使它们相加到特定目标。 You may a 阅读全文
posted @ 2018-08-31 11:01 chan_ai_chao 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a binary tree, determine if it is height-balanced. 给定二叉树,确定它是否是高度平衡的。 For this problem, a height-balanced binary tree is defined as: 对于此问题,高 阅读全文
posted @ 2018-08-31 10:15 chan_ai_chao 阅读(95) 评论(0) 推荐(0) 编辑