289. Game of Life 题目: https://leetcode.com/problems/game-of-life/ 难度 : Medium 直接一上来就没有考虑solve it in-place,考虑的是…
标签:LeetCode
Product of Array Except Self
题目 Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to t…
693. Binary Number with Alternating Bits
原题地址:https://leetcode.com/problems/binary-number-with-alternating-bits/description/ 大意:判断一个数的二进制数是不是0和1相间的。 思路…
[array] leetcode - 41. First Missing Positive - Hard
leetcode – 41. First Missing Positive – Hard descrition Given an unsorted integer array, find the …
Leetcode152——Maximum Product Subarray
文章作者:Tyan 博客:noahsnail.com | CSDN | 简书 1. 问题描述 Find the contiguous subarray within an …
670. Maximum Swap
Medium Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. …
157. Read N Characters Given Read4
Easy The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual nu…
[LeetCode][Python]66. Plus One
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assu…