Tc的专栏

待重头,收拾旧山河,朝天阙

LeetCode 1014 Best Sightseeing Pair (思维 推荐)

Given an arrayAof positive integers,A[i]represents the value of thei-th sightseeing spot, and twosightseeing spotsiandjhave distancej - ibetween them...

2019-05-30 16:33:40

阅读数 11

评论数 0

LeetCode 503 Next Greater Element II (数组)

Given a circular array (the next element of the last element is the first element of the array), print the Next Greater Number for every element. The...

2019-05-15 19:27:33

阅读数 26

评论数 0

Codeforces B Cat Party (思维 推荐)

B2. Cat Party (Hard Edition) time limit per test:1 second memory limit per test:256 megabytes This problem is same as the previous one, but has ...

2019-05-13 20:04:32

阅读数 53

评论数 0

LeetCode 1025 Divisor Game (博弈)

Alice and Bob take turns playing a game, with Alice starting first. Initially, there is a numberNon the chalkboard. On each player's turn, that play...

2019-05-05 11:01:52

阅读数 64

评论数 0

LeetCode 650 2 Keys Keyboard (dp 推荐)

Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: Copy All: You can copy all t...

2019-04-29 02:24:49

阅读数 22

评论数 0

LeetCode 739 Daily Temperatures (思维)

Given a list of daily temperaturesT, return a list such that, for each day in the input, tells you how many days you would have to wait until a warme...

2019-04-27 15:16:31

阅读数 36

评论数 0

LeetCode 448 Find All Numbers Disappeared in an Array (思维 推荐)

Given an array of integers where 1 ≤ a[i] ≤n(n= size of array), some elements appear twice and others appear once. Find all the elements of [1,n] in...

2019-04-21 13:08:13

阅读数 16

评论数 0

2019 ICPC World Finals A Azulejos (贪心 排序)

Azulejos Azulejo in the cathedral of Porto. Source:Wikimedia Commons Ceramic artists Maria and João are opening a smallazulejostore in Porto.Azulej...

2019-04-05 11:27:59

阅读数 598

评论数 0

LeetCode 659 Split Array into Consecutive Subsequences (hash 思维 推荐)

You are given an integer array sorted in ascending order (may contain duplicates), you need to split them into several subsequences, where each subse...

2019-04-01 01:44:10

阅读数 30

评论数 0

LeetCode 621 Task Scheduler (贪心 思维 推荐)

Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks. Tasks cou...

2019-03-26 01:37:11

阅读数 26

评论数 0

SDUT 3308 最长01串

最长01串 Time Limit: 2666 ms; Memory Limit: 65536 KiB Problem Description 给定一个0-1串,请找到一个尽可能长的连续子串,其中包含的0与1的个数相等。 组数很多,注意常数优化。。。 Input  一个字符串,只包含01,...

2018-10-19 00:11:19

阅读数 48

评论数 0

LeetCode 41 First Missing Positive (思维)

Given an unsorted integer array, find the first missing positive integer. For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2. Your algo...

2018-01-15 14:18:10

阅读数 144

评论数 0

HDU 6092 Rikka with Subset (背包 思维)

HDU 6092 Rikka with Subset (背包 思维)

2017-08-11 14:24:37

阅读数 461

评论数 0

Codeforces 798D Mike and distribution (构造 + 脑洞 推荐)

Codeforces 798D Mike and distribution (构造 + 脑洞 推荐)

2017-08-03 09:42:17

阅读数 612

评论数 0

Codeforces 798C Mike and gcd problem (贪心)

Codeforces 798C Mike and gcd problem (贪心)

2017-08-03 08:51:33

阅读数 476

评论数 0

LeetCode 523 Continuous Subarray Sum (同余)

LeetCode 523 Continuous Subarray Sum (同余)

2017-07-14 19:58:08

阅读数 761

评论数 0

LeetCode 36 Valid Sudoku (O(1)空间 位运算)

LeetCode 36 Valid Sudoku (O(1)空间 位运算)

2017-07-07 14:18:32

阅读数 363

评论数 0

LeetCode 467 Unique Substrings in Wraparound String (思维题)

LeetCode 467 Unique Substrings in Wraparound String (思维)

2017-07-05 14:25:40

阅读数 497

评论数 0

LeetCode 462 Minimum Moves to Equal Array Elements II (中位数)

LeetCode 462 Minimum Moves to Equal Array Elements II (中位数)

2017-01-06 15:44:38

阅读数 382

评论数 0

趋势科技笔试题 DNA串查重 (4进制)

趋势科技笔试题 DNA串查重 (4进制)

2016-11-13 20:03:45

阅读数 854

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭