Skip to content

88.merge-sorted-array解法有误 #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chenquincy opened this issue Jul 22, 2019 · 2 comments
Closed

88.merge-sorted-array解法有误 #62

chenquincy opened this issue Jul 22, 2019 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@chenquincy
Copy link

输入为

nums1: [1,2,3,0,0,0]
nums2: [2,5,6]

结果应该为:[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 的测试用例

@azl397985856 azl397985856 reopened this Jul 25, 2019
@azl397985856 azl397985856 added the help wanted Extra attention is needed label Jul 25, 2019
@slogeor
Copy link

slogeor commented Jul 30, 2019

我也发现了,代码在leetcode运行是不通过的。

我写的代码也通过不了,谁有通过的代码share一下,谢谢

kant-li added a commit to kant-li/leetcode that referenced this issue Aug 3, 2019
@kant-li
Copy link
Contributor

kant-li commented Aug 3, 2019

经测试,三种语言的代码在LeetCode运行都通过,应该是确实没做greater测试用例,你这边是遇到什么其它问题吗? @slogeor

kant-li added a commit to kant-li/leetcode that referenced this issue Aug 3, 2019
kant-li added a commit to kant-li/leetcode that referenced this issue Aug 3, 2019
azl397985856 pushed a commit that referenced this issue Aug 9, 2019
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Add python3 solution for problem 24

* Add python3 solution for problem 29.

* Fix python code format problem.
azl397985856 pushed a commit that referenced this issue Aug 15, 2019
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Add python3 solution for problem 31
azl397985856 pushed a commit that referenced this issue Aug 21, 2019
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Add python3 solution for problem 31

* Add python3 solution for problem 33

* Add python3 solution for problem 39

* Add python3 solution for problem 40

* Add language support description
azl397985856 pushed a commit that referenced this issue Sep 22, 2019
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Add python3 solution for problem 31

* Add python3 solution for problem 33

* Add python3 solution for problem 39

* Add python3 solution for problem 40

* Add language support description

* Add python3 solution for problem46

* Add python3 solution for problem 47

* Add python3 code for problem 48

* Add python3 solution for problem 49

* Add python3 code for problem 55

* Add python3 solution for problem 56

* Add python3 solution for problem 86

* Update 31.next-permutation.md
azl397985856 pushed a commit that referenced this issue Oct 19, 2019
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Python solution for problem 90

* Add python solution for problem 92
azl397985856 pushed a commit that referenced this issue Oct 25, 2019
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Python solution for problem 90

* Add python solution for problem 92

* Add python solution for problem 94

* Add python code for problem 98
azl397985856 pushed a commit that referenced this issue Nov 1, 2019
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Python solution for problem 90

* Add python solution for problem 92

* Add python solution for problem 94

* Add python code for problem 98

* add python code for problem 102

* add python code for problem 113
azl397985856 pushed a commit that referenced this issue Nov 11, 2019
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Python solution for problem 90

* Add python solution for problem 92

* Add python solution for problem 94

* Add python code for problem 98

* add python code for problem 102

* add python code for problem 113

* Add python solution for problem 130

* Add python code for problem 131

* Add some comments for python code of problem 131
azl397985856 added a commit that referenced this issue Feb 10, 2020
baicaihenxiao pushed a commit to baicaihenxiao/leetcode-frontend that referenced this issue Apr 14, 2020
roy-lau pushed a commit to roy-lau/leetcode that referenced this issue May 6, 2021
azl397985856 pushed a commit that referenced this issue Aug 19, 2023
azl397985856 pushed a commit that referenced this issue Aug 19, 2023
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62
azl397985856 pushed a commit that referenced this issue Aug 19, 2023
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Add python3 solution for problem 24

* Add python3 solution for problem 29.

* Fix python code format problem.
azl397985856 pushed a commit that referenced this issue Aug 19, 2023
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Add python3 solution for problem 31
azl397985856 pushed a commit that referenced this issue Aug 19, 2023
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Add python3 solution for problem 31

* Add python3 solution for problem 33

* Add python3 solution for problem 39

* Add python3 solution for problem 40

* Add language support description
azl397985856 pushed a commit that referenced this issue Aug 19, 2023
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Add python3 solution for problem 31

* Add python3 solution for problem 33

* Add python3 solution for problem 39

* Add python3 solution for problem 40

* Add language support description

* Add python3 solution for problem46

* Add python3 solution for problem 47

* Add python3 code for problem 48

* Add python3 solution for problem 49

* Add python3 code for problem 55

* Add python3 solution for problem 56

* Add python3 solution for problem 86

* Update 31.next-permutation.md
azl397985856 pushed a commit that referenced this issue Aug 19, 2023
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Python solution for problem 90

* Add python solution for problem 92
azl397985856 pushed a commit that referenced this issue Aug 19, 2023
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Python solution for problem 90

* Add python solution for problem 92

* Add python solution for problem 94

* Add python code for problem 98
azl397985856 pushed a commit that referenced this issue Aug 19, 2023
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Python solution for problem 90

* Add python solution for problem 92

* Add python solution for problem 94

* Add python code for problem 98

* add python code for problem 102

* add python code for problem 113
azl397985856 pushed a commit that referenced this issue Aug 19, 2023
* Fix solution on problem 88 with js, fixs #62

* Fix solution on problem 88, fixs #62

* Python solution for problem 90

* Add python solution for problem 92

* Add python solution for problem 94

* Add python code for problem 98

* add python code for problem 102

* add python code for problem 113

* Add python solution for problem 130

* Add python code for problem 131

* Add some comments for python code of problem 131
azl397985856 added a commit that referenced this issue Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants