LeetCode
gogoout123
这个作者很懒,什么都没留下…
展开
-
Leetcode_Ex1: 重复数问题
1. 问题描述 Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolute difference between i and j is at ...原创 2019-03-26 22:13:20 · 165 阅读 · 0 评论 -
Leetcode_Ex3: 单比特/双比特编码问题
1. 问题描述 该题目是Leetcode上一道Easy的题目,[原题描述如下][https://leetcode.com/problems/1-bit-and-2-bit-characters/]: We have two special characters. The first character can be represented by one bit 0. The second char...原创 2019-03-31 23:28:43 · 578 阅读 · 0 评论 -
Leetcode_Ex2: 数组之和三等分问题
1. 问题描述 该问题是leetcode上一道难易程度为easy的题目,原题如下: Given an array A of integers, return true if and only if we can partition the array into three non-empty parts with equal sums. Formally, we can partition the...原创 2019-03-28 22:42:09 · 1124 阅读 · 0 评论