2 + 2

0

stack operations, if executed on an initially empty stack? push(5), push(3), pop(), push(2), push(8), pop(), pop(), push(9), push(1), pop(), push(7), push(6), pop(), pop(), push(4), pop(), pop().

By Beginner Evan Raynor at Oct 10 2020

0

function find_max(nums) { 2 let max_num = Number.NEGATIVE_INFINITY; // smaller than all other numbers 3 for (let num of nums) { 4 if (num > max_num) { 5 // (Fill in the missing line here) 6 } 7 } 8 return max_num; 9 }

By Beginner Guillermo Goyette at Jun 21 2021

0

i=int(input("enter the number")); sum=0; pro=1; while(i>0): d=1%10; if (d%2==0): sum=sum+d; else: pro=pro*d; i=i//10; print("sum=",sum,"product=",pro);

By Beginner Devin McGlynn at May 27 2021

0

given an array nums with n integers, your task is to check if it could become non-decreasing by modifying at most one element. we define an array is non-decreasing if nums[i] <= nums[i + 1] holds for every i (0-based) such that (0 <= i <= n - 2).

By Beginner Betsy Buckridge at Jun 17 2021

0

for any given n, u = [1,2,3,...,n] and v = [2017,2018,2019,...,2017+n-1]. write a function that returns a vector that contains the following sequence: [1*2017, 2*2018, 3*2019,...,n*(2017+n-1)]. hint: you might want to create vectors u and v.

By Beginner Regina Johns at Aug 31 2020

0

JS/meta редирект со склоняющимися словами (5 секунд, 2 секунды, 1 секунда...)

By Beginner Elated Elk at Apr 18 2022

0

1.проверяет, все ли элементы массива удовлетворяют условию. 2. Хотябы оÐ

By Beginner Linda Dooley at Mar 31 2022


Related code examples


Code examples by languages