摘要:
这题很奇怪,一样的解法在中国区力扣就一直超时,在美国账号上就能accept,但就是时间复杂度不怎么好看。 827. Making A Large Island You are given an n x n binary matrix grid. You are allowed to change a 阅读全文
摘要:
995. Minimum Number of K Consecutive Bit Flips In an array A containing only 0s and 1s, a K-bit flip consists of choosing a (contiguous) subarray of l 阅读全文
摘要:
第一次写博客,一直以来图题都是弱点,这几天专攻了一下,做的时候以为这道题是道中等难度的题,做了两个多小时,很是郁闷。做完之后才发现是Hard题,又很是兴奋,又看了看好像也不知道该怎么优化了。 话不多说,上题: 685. Redundant Connection II In this problem, 阅读全文