Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VanjaRo/LeetCode
/ main
Function
main
tasks/88.go:5–9 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
3
import
"fmt"
4
5
func
main() {
6
nums1 := []int{1, 2, 3, 0, 0, 0}
7
merge(nums1, 3, []int{4, 5, 6}, 3)
8
fmt.Print(nums1)
9
}
10
11
func
merge(nums1 []int, m int, nums2 []int, n int) {
12
var
i, j = m - 1, n - 1
Callers
nothing calls this directly
Calls
2
Print
Method · 0.80
merge
Function · 0.70
Tested by
no test coverage detected