随笔分类 -  LeetCode

LeetCode 算法题 by Python
摘要:题目: 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 佳贵 阅读(793) 评论(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 佳贵 阅读(292) 评论(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 佳贵 阅读(467) 评论(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 佳贵 阅读(659) 评论(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 佳贵 阅读(5419) 评论(0) 推荐(0)