Skip to content
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

冒泡排序Go语言版 测试中变量名使用错误 #1594

Closed
lance977 opened this issue Dec 17, 2024 · 1 comment
Closed

冒泡排序Go语言版 测试中变量名使用错误 #1594

lance977 opened this issue Dec 17, 2024 · 1 comment

Comments

@lance977
Copy link

func TestBubbleSort(t *testing.T) {
	nums := []int{4, 1, 3, 1, 5, 2}
	bubbleSort(nums)
	fmt.Println("冒泡排序完成后 nums = ", nums)

	nums1 := []int{4, 1, 3, 1, 5, 2}
	bubbleSortWithFlag(nums1)
	// 这里输出的应该是nums1
	fmt.Println("冒泡排序完成后 nums1 = ", nums)
}
@krahets
Copy link
Owner

krahets commented Dec 20, 2024

Fixed in #1595 by @Transmigration-zhou

@krahets krahets closed this as completed Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants