12 2022 档案
摘要:
A - Power Given integers A and B, print the value A^B. 基础不解答 B - First Query Problem 基础不解答 C - Cash Register Takahashi is a cashier. There is a cash r
阅读全文

摘要:
1.最多可以摧毁的敌人城堡数目 题目 最多可以摧毁的敌人城堡数目 Solution 可以第一重循环找到 ,然后从该位置分别向左和向又寻找 ,寻找过程中遇到 则停止,不更新ans,遇到 则更新ans。 class Solution { public: int captureFort
阅读全文

摘要:
1.到目标字符串的最短距离 题目 Solution class Solution { public: int closetTarget(vector<string>& words, string target, int startIndex) { int n = words.size(); int
阅读全文
