摘要:
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
_Zlrrr
阅读(91)
评论(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
_Zlrrr
阅读(82)
评论(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
_Zlrrr
阅读(131)
评论(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
_Zlrrr
阅读(200)
评论(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
_Zlrrr
阅读(102)
评论(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
_Zlrrr
阅读(290)
评论(0)
推荐(0)
摘要:
http://codeforces.com/contest/1077/problem/B There is a house with nn flats situated on the main street of Berlatov. Vova is watching this house every 阅读全文
posted @ 2018-11-20 18:37
_Zlrrr
阅读(216)
评论(0)
推荐(0)
摘要:
http://codeforces.com/contest/1077/problem/A A frog is currently at the point 00 on a coordinate axis OxOx. It jumps by the following algorithm: the f 阅读全文
posted @ 2018-11-20 18:10
_Zlrrr
阅读(431)
评论(0)
推荐(0)
摘要:
http://codeforces.com/contest/1075/problem/B Palo Alto is an unusual city because it is an endless coordinate line. It is also known for the office of 阅读全文
posted @ 2018-11-20 16:11
_Zlrrr
阅读(303)
评论(0)
推荐(1)
摘要:
https://leetcode.com/problems/add-two-numbers/ You are given two non-empty linked lists representing two non-negative integers. The digits are stored 阅读全文
posted @ 2018-11-20 09:40
_Zlrrr
阅读(170)
评论(0)
推荐(0)

浙公网安备 33010602011771号