mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update array-merge-inplace.py
This commit is contained in:
parent
153b111e09
commit
e96bf43463
@ -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…
x
Reference in New Issue
Block a user