摘要:
网址:https://leetcode.com/problems/multiply-strings/submissions/ 参考:https://leetcode.com/problems/multiply-strings/discuss/17605/Easiest-JAVA-Solution-w 阅读全文
posted @ 2019-04-09 20:32
549
阅读(119)
评论(0)
推荐(0)
摘要:
网址:https://leetcode.com/problems/squares-of-a-sorted-array/ 双指针法 把左端的元素和右端的元素比较后挑出绝对值大的,将其平方放入ans中,并且将指针往中间移动 不断循环上述过程,直至两指针重合。注意处理重合位置 最后将 ans 通过 rev 阅读全文
posted @ 2019-04-09 18:37
549
阅读(94)
评论(0)
推荐(0)
浙公网安备 33010602011771号