Community Profile

# Athi

### Amrita Vishwa Vidyapeetham

2.037 total contributions since 2009

Born Again

View all

Contributions in
View by

Solved

How many Christmas presents under the tree?
For many families at Christmas, each family member gives 1 present to every other family member. The main exception is that chil...

3 Tage ago

Solved

Question 1
Implement a function named q1 with one input argument named n. This function should return the multiplication of all odd numbers...

3 Tage ago

Solved

Queen's move
given a number of consecutive moves of queen, check for their validity based on their previous position.... but remember if u g...

4 Tage ago

Solved

generate the matrix
given 3 inputs e.g [2,3,4] -- generate a matrix like below -- [2 2 0 0 0 0 0 0 0; 2 2 0 0 0 0 0 0 0; 0 0 3 3 3 0 0 0 0; 0 0...

4 Tage ago

Solved

Calculating large fibonacci numbers
The fibonacci sequence starts 1,1,2,3,5,8... Find the the n'th fibonacci number. Then calculate round(log10( . )) of that n't...

4 Tage ago

Solved

Generate Golomb's sequence
Generate Golomb's sequence up to the given number. If n=4, then seq = [1, 2, 2, 3, 3, 4, 4, 4] If n=6, then s...

4 Tage ago

Solved

Put m balls into n boxes
Can you find all the cases where, if I put 3 balls into 2 boxes the case is 1 1 1 1 1 2 1...

2 Monate ago

Solved

Next lexicographic - permutation
Find next lexicographic - permutation (permutations as it would occur in a dictionary order). E.g: nextP('ABCD') = ABDC I...

2 Monate ago

Solved

N-th permutation.
Let write some permutations of positive integers. 1: 1 2 3 4 5 6 ... 2: 2 1 3 4 ... 3: 1 3 2 4 ... ...

2 Monate ago

Solved

Find edges from a vertex
First input is T, a triplet list of indices. Second input is i, a single index (positive integer). The goal of this function is ...

2 Monate ago

Solved

Find triangles from edge
First input is T, a Triplet list of indices -whom each row actually contains the three indices of a triangle vertices-. size(T) ...

2 Monate ago

Solved

Remove duplicated triangles
Input T is a triangulation (triplet list of indices -positive integers-, each index refering to a vertex number in a correspondi...

2 Monate ago

Solved

wythoff sequence
find the lower wythoff sequence upto n; https://oeis.org/A000201

2 Monate ago

Solved

Bell Triangle
Form the bell triangle upto nth bell number posotion; if n=5, then y= [1 0 0 0 0; 1 2 0 0 ...

2 Monate ago

Solved

generate the matrix
given a value n (say 4) - generate the matrix like below; y= [0 1 2 3 4; -1 0 1 2 3; ...

2 Monate ago

Solved

find nth even fibonacci number
1st even fibonacci number=2 ; 2nd even fibonacci number=8 ..

2 Monate ago

Solved

given a matrix a, find the adjoint matrix of a.

2 Monate ago

Solved

cofactor matrix
given a matrix, find its cofactor matrix https://en.wikipedia.org/wiki/Minor_(linear_algebra)#Inverse_of_a_matrix

2 Monate ago

Solved

Find a common edge
First input is T, a triplet list of indices. Second input is e = [e1 e2], a row vector, couple of indices (positive distinct int...

2 Monate ago

Solved

Find a common vertex
First input is T, a triplet list of indices. Second input is i, a single index (positive integer). The goal of this function is ...

2 Monate ago

Solved

Rotate a matrix without using rot90
rotate the input square matrix by certain degrees (e.g. 270 or 450 etc.) without using rot90 or flip function. its an extension...

2 Monate ago

Solved

Where is 1?
There is a 3d matrix [A] that consist of many zeros and only one. A=zeros(100,100,100); i=randi(100); j=randi(100); ...

3 Monate ago

Solved

Analyze observation data
Suppose you have the following data (A,B,C) in three-column format. A B C -------------------------- t=1 ...

3 Monate ago

Solved

Tridiagonal matrix
Given vectors u and v, make a tri-diagonal symmetric matrix such that u is in the main diagonal and v is below and above diagona...

3 Monate ago

Solved

calculate the day of the year from a date string.
'09-Oct-2016' is the 283rd day of the year. So doy = dayoftheyear('09-Oct-2016') should return doy = 283

3 Monate ago

Solved

What's my favourite food?
The spicier the better.

3 Monate ago

Solved

Expand a term
Given a term, as a string, expand it. e. g. f = '2(x + y)';

3 Monate ago

Solved

Some tweaks in summation, Can you decode? :)
There are some tweaks in summation that you might observe via test suites Try if you can

3 Monate ago

Solved

Modified Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 3 6 9 11; 0 0 6 9 11; 0 0 0 9 11; 0 0 0...

3 Monate ago

Solved

Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

3 Monate ago