摘要: 题目: Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is 阅读全文
posted @ 2017-06-18 17:42 佳贵 阅读(773) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime compl 阅读全文
posted @ 2017-06-18 15:47 佳贵 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 485. Max Consecutive Ones 题目: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Note: The input array will onl 阅读全文
posted @ 2017-06-13 19:39 佳贵 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 292. Nim Game 题目: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to 阅读全文
posted @ 2017-06-13 19:20 佳贵 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 617. Merge Two Binary Trees 题目: Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are o 阅读全文
posted @ 2017-06-12 20:44 佳贵 阅读(5393) 评论(0) 推荐(0) 编辑