Предмет: Английский язык, автор: mirosnikmargarita275

Можно про япониюююю пожайлустааа​

Приложения:

Ответы

Автор ответа: olyanchek
0
There is something about Japan that fascinates me. Perhaps it is the rich culture and history, the unique food, or the stunning natural beauty. Whatever it is, I am drawn to this country, and I long to visit it someday.

One thing that I admire about Japan is its deep respect for tradition. From the intricate tea ceremonies to the graceful movements of the traditional dance, there is a sense of reverence for the past that is deeply ingrained in Japanese culture. I am particularly interested in the art of origami and the traditional Japanese pottery known as "raku." I would love to witness these crafts firsthand and learn from the skilled artisans who practice them.

Another reason why I want to visit Japan is for its food. Sushi, ramen, udon, tempura - the list of mouth-watering dishes goes on and on. I have heard that the ingredients used in Japanese cuisine are of the highest quality, and that the preparation of the food is treated as an art form. I am excited to try new dishes and explore the vibrant food scene.
Похожие вопросы
Предмет: Информатика, автор: ivanus585
Golang

Сестра Гоши Маша любит играть в прятки. Маша создала массив из n чисел от 1 до n. И какие-то из них поменяла на другие, также от 1 до n. Напишите функцию FindMissingValues(nums []int) []int, которая принимает данный массив и возвращает массив, содержащий числа, которые пропали, в порядке возрастания.

Примечания
Например, FindMissingValues([4, 3, 2, 7, 8, 2, 3, 1]) должна возвращать [5 6], FindMissingValues([4, 4, 4, 4]) — [1 2 3], а FindMissingValues([1, 1, 1]) — [2 3].

package main

import (
"fmt"
"sort"
)

func FindMissingValues(nums []int) []int {
n := len(nums)
missingValues := make([]int, 0)

expectedValues := make([]int, n)
for i := 0; i < n; i++ {
expectedValues[i] = i + 1
}

sort.Ints(nums)
sort.Ints(expectedValues)

for i := 0; i < n; i++ {
check := false
for j := 0; j < n; j++ {
if nums[i] == expectedValues[i] {
check = true
}
}
if !check {
missingValues = append(missingValues, expectedValues[i])
}
}
fmt.Println(nums)
return missingValues
}

func main() {
fmt.Println(FindMissingValues([]int{4, 3, 2, 7, 8, 2, 3, 1}))

}

Есть код который выводит [3 4 5 6] вместо [5 6] при первом примере.
Его нужно доработать принципом отсеивания из нового массива лишних цифр (тех которые есть во входном) и добавить их в новый массив, а его уже выводить.
Буду очень благодарен, в синтаксисе Golang трудно разобраться после питона)
Предмет: Геометрия, автор: pisna4842