上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 87 下一页
摘要: https://leetcode.com/problems/gray-code/ The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-nega 阅读全文
posted @ 2018-11-21 20:19 丧心病狂工科女 阅读(146) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/maximum-subarray/ Given an integer array nums, find the contiguous subarray (containing at least one number) which has t 阅读全文
posted @ 2018-11-21 18:26 丧心病狂工科女 阅读(136) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/sort-colors/ Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same co 阅读全文
posted @ 2018-11-21 17:44 丧心病狂工科女 阅读(74) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/median-of-two-sorted-arrays/ There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median o 阅读全文
posted @ 2018-11-21 11:55 丧心病狂工科女 阅读(103) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/power-of-four/ Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example 1: Examp 阅读全文
posted @ 2018-11-20 22:45 丧心病狂工科女 阅读(88) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/reverse-string/ Write a function that takes a string as input and returns the string reversed. Example 1: Input: "hello" 阅读全文
posted @ 2018-11-20 22:30 丧心病狂工科女 阅读(79) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/nim-game/ You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one 阅读全文
posted @ 2018-11-20 22:22 丧心病狂工科女 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; /* Problem description: There is an array A, the length of array A is N. You need to perform Q queries. Each query, you get an integer X, and you need to find the ... 阅读全文
posted @ 2018-11-20 22:08 丧心病狂工科女 阅读(198) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/add-binary/ iven two binary strings, return their sum (also a binary string). The input strings are both non-empty and c 阅读全文
posted @ 2018-11-20 22:06 丧心病狂工科女 阅读(96) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/1077/problem/C Let's call an array good if there is an element in the array that equals to the sum of all other elements 阅读全文
posted @ 2018-11-20 19:54 丧心病狂工科女 阅读(244) 评论(0) 推荐(0) 编辑
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 87 下一页