2019年2月11日

摘要: Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runti 阅读全文
posted @ 2019-02-11 12:02 Albert67 阅读(95) 评论(0) 推荐(0) 编辑
 
摘要: Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a 阅读全文
posted @ 2019-02-11 12:01 Albert67 阅读(125) 评论(0) 推荐(0) 编辑
 
摘要: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet 阅读全文
posted @ 2019-02-11 10:49 Albert67 阅读(108) 评论(0) 推荐(0) 编辑
 
摘要: Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Example 2: 阅读全文
posted @ 2019-02-11 10:19 Albert67 阅读(115) 评论(0) 推荐(0) 编辑
 
摘要: 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 would have ex 阅读全文
posted @ 2019-02-11 10:17 Albert67 阅读(107) 评论(0) 推荐(0) 编辑