Community Profile

# kaatil_coder

##### Last seen: 2 days ago
1,315 total contributions since 2020

Bachelor's student in Civil Engineering at IIT(BHU)

View all

Contributions in
View by

Solved

Calculate cosine without cos(x)
Solve cos(x). The use of the function cos() and sin() is not allowed.

3 days ago

Solved

Calculate sin(x) without sin(x)
Calculate y = sin(x) x = 0 -> y= 0 without the use of sin(x) or cos(x)

3 days ago

Solved

pizza deals
Given two pizza slices of different sizes: * Slice A with angle alpha1, radius r1, and price p1 * Slice B with angle alpha2,...

3 days ago

Solved

'Determine if array of numbers is odd'
Return true if the input single number is odd. If the input is a vector, it will return a vector or array of logical values indi...

3 days ago

Solved

How do you make seven even?
Take away the s.

3 days ago

Solved

Translate German decimals to English decimals
The string 'x = [2,5; 5,5; 4,3];' should return 'y = [2.5; 5.5; 4.3];'

3 days ago

Solved

Replace Nan!
Replace Nan in the given vector(v) with 9999.

3 days ago

Solved

Let's make puddings !
We will make puddings with eggs, milk and sugar. To make one pudding, we need one egg, 140(cc) of milk, 15 (g) of sugar. Now W...

3 days ago

Solved

Please check if calorie intake is less than 300 kcal.
I like eating some puddings and some chocolate cookies around 3 o'clock. However, I care about calorie intake. Please check whe...

3 days ago

Solved

The proportion of NaN in the data
If NaN occupies less than half of the input data, return 1, otherwise return 0. eg. input x = [1 2 NaN ; 4 NaN 6] >>> out...

3 days ago

Solved

The average of the second largest values
Given a matrix, find the average of the second largest values in each row. The same value does not exist on a row. Example: ...

3 days ago

Solved

Please check the last row
We have data of matrix, that is input. That contains 2 or more rows and the last row should contain the average of each column,...

3 days ago

Solved

I hope to lose weight healthily...
In order to reduce weight healthily, weight will be reduced by 4% every month. Please calculate how many months it will take...

3 days ago

Solved

Add 3 (x<=100) Or Subtract 100 and add 3(100<x)
Add 3 to every element. However, if the value is greater than 100, subtract 100 and add 3. eg. input x = [45 106; 67 1...

3 days ago

Solved

The great 82-year-old
Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...

3 days ago

Solved

Shift elements of vector left
Shift elements of vector to the left. For ex. : Input_vec = [1 2 3 4 5] Output_vec = [2 3 4 5 1]

3 days ago

Solved

Capitalized string operations
Convert the input sentence to upper case and replace all vowels with an underscore ('_')

3 days ago

Solved

find number of times of occurrence of the most frequent number in a row vector
In a given row vector, find the number of times a mode of a row vector has occurred example: in [2 5 5 5 5 3], output is 4 ...

3 days ago

Solved

Check if there are white spaces in the input string
If there are white spaces in the input string, output=1 else 0

3 days ago

Solved

Repetition of matrices
*A is a bold matrix: [1 2 3; 4 5 6;7 8 9]* Given an integer 'n' , a matrix B exists such that has n copies of A in the row an...

4 days ago

Solved

Product of all elements in an array
Compute the product of all elements in an array.

4 days ago

Solved

count upper and lower case characters
In a given input string, count and return the number of upper and lower case characters as u and l respectively. For example:...

4 days ago

Solved

Nth root of a number
Given an input and a number N, find the Nth root of the number(s)

4 days ago

Solved

replace empty matrices with '[]'
for example a=1;a(:,1)=[]; returns a = Empty matrix: 1-by-0 use this as the input,and the output should be '[]...

4 days ago

Solved

Raise each element to the power of its index in a matrix
In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

4 days ago

Solved

generate capital english alphabets
Based on the numeric input 'n', generate the capital english alphabet starting from A till the english alphabet at the 'n'th pos...

4 days ago

Solved

Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

4 days ago

Solved

Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

4 days ago

Solved

Area of polygon
Given the vertices in vectors X,Y, return the area of the polygon they define.

4 days ago

Solved

Find 0 in array
Given array find where there 0 is.

4 days ago