Solved


Missing Number (arithmetic progression)
Given a list of integers forming an arithmetic progression (where the difference between consecutive elements is constant), your...

13 days ago

Solved


Merge two integers
We want to merge the digits of two integers having the same number of digits to obtain a new integer whose digits are obtained b...

13 days ago

Solved


snake_case to CamelCase convention
The snake_case naming convention writes words in lowercase and separates them with underscores. In CamelCase convention, the fir...

13 days ago

Solved


Sum all elements of a vector or matrix without using some built in functions
Write a function that computes the sum of all elements of the input array v without using the following built-in function: sum,...

13 days ago

Solved


Remove Adjacent Pairs
Given an array of integers where adjacent elements may be identical, your task is to remove these adjacent pairs. If removing on...

13 days ago

Solved


Linearly Spaced Array
Create a linearly spaced array from 0 to x consisting of y elements.

13 days ago

Solved


Double the 2x2 Matrix
In this challenge, you are given a predefined 2x2 matrix called x. Your task is to multiply every element in this matrix by 2 an...

13 days ago

Solved


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

13 days ago

Solved


Determine if a Digit is Isolated
A digit is considered isolated if both its left and right neighbors are different from itself. For example, in the number 776444...

13 days ago

Solved


[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...

13 days ago

Solved


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...

13 days ago

Solved


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.

13 days ago

Solved


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

13 days ago

Solved


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

13 days ago

Solved


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...

13 days ago

Solved


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 ...

13 days ago

Solved


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...

13 days ago

Solved


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 ...

13 days ago

Solved


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...

13 days ago

Solved


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...

13 days ago

Solved


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;...

13 days ago

Solved


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

13 days ago

Solved


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

16 days ago

Solved


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

16 days ago

Solved


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

16 days ago

Solved


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

16 days ago

Solved


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...

16 days ago

Solved


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...

16 days ago

Solved


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 = ...

16 days ago

Solved


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

16 days ago

Load more