摘要: 题目内容 Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three inte 阅读全文
posted @ 2017-07-07 10:40 chyq 阅读(135) 评论(0) 推荐(0)
摘要: 题目内容 题目来源:LeetCode Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array whic 阅读全文
posted @ 2017-07-06 11:58 chyq 阅读(349) 评论(0) 推荐(0)
摘要: 题目内容 题目来源:LeetCode Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each 阅读全文
posted @ 2017-07-06 10:04 chyq 阅读(170) 评论(0) 推荐(0)
摘要: 题目内容 题目来源:LeetCode Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 阅读全文
posted @ 2017-07-05 11:21 chyq 阅读(142) 评论(0) 推荐(0)
摘要: 题目内容 本题来源LeetCode Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 阅读全文
posted @ 2017-07-04 11:39 chyq 阅读(124) 评论(0) 推荐(0)
摘要: 题目内容 本题来源LeetCode Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array nums = [1,1,1,2,2,3 阅读全文
posted @ 2017-07-04 11:03 chyq 阅读(102) 评论(0) 推荐(0)
摘要: 题目内容 本题来源于LeetCode Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allo 阅读全文
posted @ 2017-07-03 14:46 chyq 阅读(120) 评论(0) 推荐(0)
摘要: 事件背景 前段时间从Ubuntu切换到了LinuxMint,想尝尝鲜。 LinuxMint是基于Ubuntu改良的,放弃了Ubuntu的Unity界面,更加易用,更加适合我这样的小白人员。本文也适用于Ubuntu用户。 使用后发现电脑的风扇总是转个不停。以前就听说过Linux系统对独立显卡不友好,这 阅读全文
posted @ 2017-06-12 10:28 chyq 阅读(2903) 评论(0) 推荐(0)