Community Profile

# kaatil_coder

##### Last seen: 1日 前
1,315 2020 年以降の合計貢献数

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

#### kaatil_coder's バッジ

すべて表示

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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

1日 前

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]

1日 前

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

1日 前

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

1日 前

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

1日 前

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

2日 前

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

2日 前

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

2日 前

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

2日 前

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

2日 前

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

2日 前

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

2日 前

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

2日 前

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

2日 前

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

2日 前

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

2日 前