2020年7月22日

leetcode 30day--2

摘要: 202. Happy Number Write an algorithm to determine if a number n is "happy". A happy number is a number defined by the following process: Starting with 阅读全文

posted @ 2020-07-22 21:17 wsw_seu 阅读(116) 评论(0) 推荐(0) 编辑

leetcode 30day--1

摘要: Single Number Given a non-empty array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have 阅读全文

posted @ 2020-07-22 21:00 wsw_seu 阅读(145) 评论(0) 推荐(0) 编辑

525. Contiguous Array

摘要: Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1. Example 1: Input: [0,1] Output: 2 Explanation: [0 阅读全文

posted @ 2020-07-22 20:50 wsw_seu 阅读(157) 评论(0) 推荐(0) 编辑

导航