摘要: 题目 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 ru 阅读全文
posted @ 2018-10-08 11:42 shinjia 阅读(151) 评论(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 阅读全文
posted @ 2018-10-08 11:02 shinjia 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height balanced binary tree i 阅读全文
posted @ 2018-10-08 10:10 shinjia 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthes 阅读全文
posted @ 2018-10-08 10:07 shinjia 阅读(69) 评论(0) 推荐(0) 编辑