摘要:
【题面】 You are given a string s of length n consisting of lowercase English letters. This string can be used to build other strings. The cost of each le 阅读全文
posted @ 2020-03-31 16:57
XXXSANS
阅读(335)
评论(0)
推荐(0)
摘要:
题目 https://www.hackerrank.com/challenges/yet-another-minimax-problem 题意 给出 n 个整数,求一个排列使得相邻两数的异或值的最大值最小,输出该值。 题解 如果有一位所有数都是 0 或 1,则异或之后这一位始终是 0。 如果有一位既 阅读全文
posted @ 2020-03-31 11:08
XXXSANS
阅读(253)
评论(0)
推荐(0)

浙公网安备 33010602011771号