Community Profile

# Athi

### VisAI Labs

Principal Engineer, VisAI Labs. Peak ranking: 2 (as on 15th Jan, 2024).

All

Ver insignias

#### Content Feed

Ver por

Resuelto

Count of Unique Elements of a Vector
Count the number of times each unique element appears in a vector. Example: Input x = [2 9 1 2 4 9 2] Output y = [1 1; 2 3; 4...

15 días hace

Resuelto

Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...

15 días hace

Resuelto

Determine pressure altitude using field elevation and altimeter setting
Given an airfield's elevation in feet (ft) and the current altimeter setting in inches of mercury (inHg), calculate the pressure...

15 días hace

Resuelto

swap sign sum & multiply castles
It is an easy problem, if you know the answer. Given a square matrix of NxN ordinary numbers. Initially place N identical indi...

15 días hace

Resuelto

Flip the diagonal values
Write a program that flip the elements of main diagonal , upper and lower diagonal values of a sqare matrix. For example if a ...

15 días hace

Resuelto

Remove a specific character with another
Remove any (-) dash sign with (_) underscore Ex = 'The-Journey-of-thoudsands-miles-starts-with-a-single-step' y = 'The_Jour...

15 días hace

Resuelto

Swap between first and last
The idea is to swap between first and last row Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

15 días hace

Resuelto

Swap between first and last column
The idea is to swap between first and last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 ...

15 días hace

Resuelto

Swap between columns
The idea is to swap between second and second last column Ex = [1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; 1 2 3 4 5; ...

15 días hace

Resuelto

Swap between rows
The idea is to swap between second and second last row Ex = [1 2 3 4 5; 5 4 3 2 1; 1 2 3 4 5; 1 2 3 4 5; ...

15 días hace

Resuelto

Remove a specific column with max value
Remove the column that contain the max value in the matrix?

17 días hace

Resuelto

Remove a specific row with max value
Remove the row that contain the max value in the matrix?

17 días hace

Resuelto

Remove a specific row with min value
Remove the row that contain the min value in the matrix?

17 días hace

Resuelto

Remove a specific column with min value
Remove the column that contain the min value in the matrix?

17 días hace

Resuelto

A sequence of Ones
You are given number(s) with all digits - 1. Your answer will depend on the count of 1 in the given number, for example - x1...

alrededor de 1 mes hace

Resuelto

Determine if input is a Harshad number
In mathematics a harshad number (or Niven number) in a given number base is an integer that is divisible by the sum of its digit...

alrededor de 1 mes hace

Resuelto

Median filter over three values
Implement 1-D median filter over input vector x as described: Moving window size is 3 Output is middle/central value in moving...

alrededor de 1 mes hace

Resuelto

String vowel manipulation
Given a string, find all the vowels and shift them to the end of the string in the same order as they are found.

alrededor de 1 mes hace

Resuelto

Determine if a number is a cool number
A number is considered cool if it is 3 digits, has a 5 in it, and is divisible by 4.

alrededor de 1 mes hace

Resuelto

Palindrome String
Determine if the inputted string is a palindrome. That is, the string is the same forwards as it is backwards. For example: ...

alrededor de 1 mes hace

Resuelto

Palindrome vector
Check if a given vector is Palindrome. Example, [1 2 54 32 45 5 33 456 45 456 33 5 45 32 54 2 1]

alrededor de 1 mes hace

Resuelto

Range of Values in a Matrix
Create a function that accepts a matrix of real numbers as input and returns the range of the values contained in the matrix. Th...

alrededor de 1 mes hace

Resuelto

Getting values from a vector
This exercise is for finding the values that meet your criteria. a = [-5 28 7 83 73]; b = 23 ; c = (a > b) Then : c = ...

alrededor de 1 mes hace

Resuelto

Summation of Non Zeros Numbers in String Variable
Find the Summation of Non Zeros Numbers in String Variable The input : x = '100205' The Output : y = 8

alrededor de 1 mes hace

Resuelto

Find Rows with Specift Properities
Delete rows with specific properites as following: Find rows that have a negative value in any element of the row and delete it...

alrededor de 1 mes hace

Resuelto

convert 2D array of ones and zeros to checkerboard array of [1,2] where the original array was ones and zero elsewhere
Given a 2D array of ones and zeros, generate an equivalent sized checkerboard array of ones and twos. The checkerboard pattern s...

alrededor de 1 mes hace

Resuelto

How many ways?
Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

alrededor de 1 mes hace

Resuelto

Modulo of sum of square of first n primes with 24

alrededor de 1 mes hace

Resuelto

sum of binomial series

alrededor de 1 mes hace

Resuelto

How many palindromes?
* Given a set of letters, count all possible palindromes, using all of those letters. * For example, if the set is {'A' 'A' 'A'...

alrededor de 1 mes hace