mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-22 16:31:15 -04:00
Update array-merge-inplace.py
This commit is contained in:
parent
153b111e09
commit
e96bf43463
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
# author: bt3gl
|
||||
|
||||
"""
|
||||
You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two
|
||||
integers m and n, representing the number of elements in nums1 and nums2 respectively.
|
||||
|
@ -50,4 +54,4 @@ if __name__ == "__main__":
|
|||
|
||||
merge(nums1, m, nums2, n)
|
||||
print(nums1)
|
||||
# [1,2,2,3,5,6]
|
||||
# [1,2,2,3,5,6]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue