Nums = [2,7,11,15], target = 9


Download 12.24 Kb.
Sana05.05.2023
Hajmi12.24 Kb.
#1431693
Bog'liq
13-guruh aprel


1-savol (10 ball)


Input: nums = [2,7,11,15], target = 9
Output: [0,1]
Explanation: Because [0] + nums[1] == 9, we return [0, 1].

  1. savol (5 ball)



Input: x = 8
Output: 2
Explanation: The square root of 8 is 2.82842..., and since we round it down to the nearest integer, 2 is returned.

  1. savol (10 ball)



Input: n = 15
Output: ["1","2","Fizz","4","Buzz","Fizz","7","8","Fizz","Buzz","11","Fizz","13","14","FizzBuzz"]

  1. savol (10 ball)



Input: names = ["Mary","John","Emma"],
heights = [180,165,170]


Output: ["Mary","Emma","John"]p
Explanation: Mary is the tallest, followed by Emma and John.

  1. savol (20 ball)

Input: day = 15, month = 8, year = 1993
Output: "Sunday"
Download 12.24 Kb.

Do'stlaringiz bilan baham:




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling