You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
结果应该为:[1,2,2,3,5,6] , 而不是 [1,2,3,3,5,6],图片有误
另外,题目中说的 nums1 的 size is greater or equal to m + n , 所以 current 初始值应该为 m + n - 1 而不是 nums1.length - 1,leetcode能跑过应该是没有 greater 的测试用例