Write a function that reverses a string. The input string is given as an array of characters s. You must do this by modifying the input array in-place
Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order.이번 문제는 감소하지 않
문제 You are given an integer array nums consisting of n elements, and an integer k. Find a contiguous subarray whose length is equal to k that has the
Given a binary array nums and an integer k, return the maximum number of consecutive 1's in the array if you can flip at most k 0's.Input: nums = 1,1,
Given an array nums. We define a running sum of an array as runningSumi = sum(nums0…numsi).Return the running sum of nums.Input: nums = 1,2,3,4Output:
Given an array of integers nums, you start with an initial positive value startValue.In each iteration, you calculate the step by step sum of startVal
You are given a 0-indexed array nums of n integers, and an integer k.The k-radius average for a subarray of nums centered at some index i with the rad