Starting VS Code 1.65, extensions now use the [language status item API][] instead of
manually adding a button to the status bar. That means the PowerShell icon button in the
status bar now exists under the language status menu, which looks like: `{}`. You can then
pin the icon back to the status bar by hovering over that menu and clicking the pin
button. The PowerShell icon will show you the current session's version, and clicking it
will let you change to another session. The language status icon will only appear when the
active editor's language mode is PowerShell.
Control + Cmd + Space
You are given an array of k linked-lists lists, each linked-list is sorted in ascending order.
Merge all the linked-lists into one sorted linked-list and return it.
return new ListNode(lists[0].val, new ListNode(lists[1].val, new ListNode(lists[2].val, null));
Если вам надо обязательно иметь в коде рекурсивную F, то никак особо вы код не с оптимизируете.
package main
import "fmt"
const N = 10
func main() {
matrix := make([][]int, N)
for i := 0; i < len(matrix); i++ {
matrix[i] = make([]int, N)
}
ln := len(matrix) - 1
for i := 0; i < len(matrix); i++ {
//побочная диагональ
matrix[i][ln-i] = 1
for j := 0; j < ln-i; j++ {
//выше
matrix[i][j] = 0
//ниже
matrix[ln-i][ln-j] = 2
}
}
for i := 0; i < len(matrix); i++ {
fmt.Println(matrix[i])
}
}
перенес в ответ