摘要:
与Valid-Anagram类似 阅读全文
posted @ 2024-08-09 17:08
ZeroPhix
阅读(29)
评论(0)
推荐(0)
摘要:
大问题拆分为子问题,使用了对称的思想,再利用边界条件,降低自由变量的个数,与Two Sum完全可以类比 阅读全文
posted @ 2024-08-09 16:56
ZeroPhix
阅读(33)
评论(0)
推荐(0)
摘要:
分析 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each 阅读全文
posted @ 2024-08-09 15:29
ZeroPhix
阅读(32)
评论(0)
推荐(0)
摘要:
快乐数的检测过程实际上是一个寻找循环的过程,无论是1自身的循环,还是在有限空间内的循环 阅读全文
posted @ 2024-08-09 13:24
ZeroPhix
阅读(63)
评论(0)
推荐(0)
摘要:
双指针方式,本质是遍历,遍历过程将问题一分为二,拆分为已解决和未解决的问题 阅读全文
posted @ 2024-08-09 11:33
ZeroPhix
阅读(30)
评论(0)
推荐(0)

浙公网安备 33010602011771号