随笔分类 - 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
阅读全文
摘要:题目: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号