很少有go语言的代码,哭(好像是春招笔试,不知道和暑期是否一样题目链接:https://mp.weixin.qq.com/s/5dOkeepCP-PXt1QXRYGX5Q第一题:稳定数组dp package main import "fmt" func do(nums []int) int { dp := make([]int, len(nums)) for i := range dp { dp[i] = 1 } res := 1 for i := 1; i < len(nums); i++ { if abs(nums[i]-nums[i-1]) <= 1 ...