A résolu


[Mảng 1 Chiều Cơ Bản]. Bài 3. Số nhỏ nhất
Cho mảng số nguyên A[] gồm N phần tử, hãy đếm xem trong mảng của bạn có bao nhiêu số có cùng giá trị nhỏ nhất. Ví dụ mảng A = {1...

20 jours il y a

A résolu


Find the largest sum of any contiguous subarray
Given an array of N integers, find the contiguous subarray (which must contain at least one number) with the maximum sum and ret...

20 jours il y a

A résolu


Return the sum of all even numbers in a vector
Write a function that takes a vector of integers and returns the sum of all even numbers.

20 jours il y a

A résolu


Battery Charge Indicator
Write a function called battery_charge that visually represents the charge of a battery. The function takes an integer paramete...

20 jours il y a

A résolu


Reverse Integer
You are given an integer, reverse its digits. For negative integers, the sign should remain in the front. For instance, 12340 s...

20 jours il y a

A résolu


CamelCase to snake_case convention
The CamelCase naming convention capitalizes the first letter of each word. In snake_case convention, words are written in lowerc...

20 jours il y a

A résolu


Out-of-Place Elements Count
Determine the number of elements in a list of integers that are not in their original order after sorting the list in ascending ...

20 jours il y a

A résolu


Palindrome Checker
Check to see if a given string is a palindrome (a word, phrase, or sequence that reads the same backward as forward). Output sh...

20 jours il y a

A résolu


Find the standard deviation of non-zero elements in a matrix
Given a matrix A, calculate the sample standard deviation of only the non-zero elements. If there are fewer than 2 non-zero ...

20 jours il y a

A résolu


Diagonal Product of A Square Matrix
For a matrix A, calculate the product of its diagonal elements. * Assume all input matrices are square & corresponding element...

20 jours il y a

A résolu


Write out numbers in words
Write out numbers in words ( range [0-9999] ) with British spelling rules. For example; 1 > one 56 > fifty-six 100 > one hund...

20 jours il y a

A résolu


Net Present Value of a Stream of Cash Flows
Calculate the net present value of a future cash flow vector given; future cash flow vector (F) and interest rate (i) assume;...

20 jours il y a

A résolu


Good Morning :)
Just submit your solution between 05:00:00 and 10:00:00 (AM = Ante Meridiem = Before Noon). _Note : Consider Cody Server Time...

20 jours il y a

A résolu


Alternate Arrangement
Determine the ways of arranging 'm' men and 'w' women alternatively in a row of 's' seats. Assumptions : s<m and s<w

24 jours il y a

A résolu


Title
Make a plot for x and add title "My Plot". NOTICE: YOU CAN NOT USE ans INSTEAD OF [y ax]!

24 jours il y a

A résolu


Trapezium
Calculate the area of the Trapezium using it's bases and height.

24 jours il y a

A résolu


Rhombus
Get the area of the Rhombus using it's Diagonals.

24 jours il y a

A résolu


Watermelon [MATLAB Cody Edition]
YOU CAN READ THE REAL CHALLENGE FROM THIS URL AND APPLY IT https://codeforces.com/problemset/problem/4/A NOW INSTEAD OF DISP...

24 jours il y a

A résolu


Problem Set 2
Make a calculator by the four main operators (op): + - * / And the two numbers (n1, n2). Don't forget to check to divisio...

24 jours il y a

A résolu


Problem Set 1
You will get the vector "v", you should put it's length in a variable called "lngth", then... If it's length from 1 to 5, sz = ...

24 jours il y a

A résolu


If
If a more than zero, then b = true.

24 jours il y a

A résolu


Nested If(s)
If a greater than zero, then check, if a = greater that 1 and less than 10, then b = true, else, b = false.

24 jours il y a

A résolu


Plot
Make a plot of the vector x. NOTICE: YOU CAN NOT USE ans INSTEAD OF y!

24 jours il y a

A résolu


Basic Physics V
Calculate the Weight (w).

24 jours il y a

A résolu


Draw '\'
Can you draw the sign '\' by zeros and ones? NOTICE: Be x-by-x matrix.

24 jours il y a

A résolu


If-Elseif-Else
If a more than zero, b = true, if a = zero , b = zero, else, b = false.

24 jours il y a

A résolu


Basic Algebra I
You should solve the problem 3X - 2 = 7 by finding the value of X. You must use this array/vector [2 3 7]. GOOD LUCK!

24 jours il y a

A résolu


Basic Physics II
Get the Kinetic Energy (KE).

24 jours il y a

A résolu


Basic Physics I
Calculate the energy by the famous formula of Albert Einstein.

24 jours il y a

A résolu


Basic Physics VIII
Calculate the Mechanical Energy (ME) when the point is B.

24 jours il y a

Charger plus