justyy银行行长
justyy银行行长

西半球最土的博主:https://justyy.com B 站 https://space.bilibili.com/1826201500 油管 https://youtube.com/c/DoctorLai STEEM 见证人 https://steemyy.com

Leetcode 双周赛34 简要回顾

我最近开始参加leetcode在线编程竞赛。 Leetcode在周日的清晨举行每周一次的比赛-但是我在英国,比赛的时间在凌晨,起不来比赛,嗯,睡觉更重要。

还好,每两周有一次双周赛,时间是周六下午 3:30到5:30(BST)。

今天的比赛:https://leetcode.com/contest/biweekly-contest-34

我在90分钟内成功解决了3题,但是未能解决第三题(难度中)

我选择的编程语言是C ++。 提交了很多次是超时或者是错误答案WA,所以罚时很多。



Matrix Diagonal Sum

https://leetcode.com/contest/biweekly-contest-34/problems/matrix-diagonal-sum

简单难度 - 两个循环,注意别重复加和。

Number of Ways to Split a String

Number of Ways to Split a String

难度中:按1来分组,然后每组可能性相乘。

Shortest Subarray to be Removed to Make Array Sorted

https://leetcode.com/contest/biweekly-contest-34/problems/shortest-subarray-to-be-removed-to-make-array-sorted

难度中:双指针?两边删和中间删判断一下。

Count All Possible Routes

https://leetcode.com/contest/biweekly-contest-34/problems/count-all-possible-routes

难: Depth First Search + Memoization 深度优先+记忆


Follow me for topics of Algorithms, Blockchain and Cloud.

I am @justyy - a Steem Witness

https://steemyy.com

Steem/Blurt On!~

Every little helps! I hope this helps!


If you like my work, please consider voting for me or Buy Me a Coffee, thanks!

https://steemit.com/~witnesses type in justyy and click VOTE




Alternatively, you could proxy to me if you are too lazy to vote!

Also: you can vote me at the tool I made: https://steemyy.com/witness-voting/?witness=justyy

CC BY-NC-ND 2.0 版权声明

喜欢我的文章吗?
别忘了给点支持与赞赏,让我知道创作的路上有你陪伴。

加载中…

发布评论