A résolu


find the nth fibonacci number
The Fibonacci sequence is defined as follows: give n, find the nth fibonacci number

4 mois il y a

A résolu


Find nth number
The numbers 2 and 7 are called lucky numbers, an integer containing only the digits 2 and 7 is also called lucky number. The pro...

4 mois il y a

A résolu


find the nth number (plus)
this problem is the harder version of Problem 61014. The numbers 2 and 7 are called lucky numbers, an integer containing only t...

4 mois il y a

A résolu


Column norms of a matrix
Given a matrix M, return a vector y such that for each k y(k)=norm(M(:,k)) (y(k) is the Euclidean norm of the k-th col...

4 mois il y a

A résolu


Compute a determinant
Write a function to compute the determinant of an x matrix with diagonal entries equal to an integer and other entries equal ...

4 mois il y a

A résolu


Mesh the octahedron
Problem statement An octahedron is a regular polyhedron with 6 vertices and 8 triangular faces. It is also one of the five we...

6 mois il y a

A soumis


A statistical analysis on COVID-19 data collection
Multialignment of fasta files to reference sequences, extract date and country. Analyze geographical diffusion

11 mois il y a | 1 téléchargement |

0.0 / 5
Thumbnail

A résolu


The End of the World
given a date -- represent it in the Maya long count system. <https://en.wikipedia.org/wiki/Maya_calendar> <https://maya.nm...

environ un an il y a

A résolu


Lost days
Given two dates in a particular format, calculate the difference between them.

environ un an il y a

A résolu


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

environ un an il y a

A résolu


leap year
find the number of leap years within the given time interval

environ un an il y a

A résolu


Friday or not
I love Friday. Please tell me whether the day is Friday. Dateformat is 'yyyy-mm-dd' or 'dd-mmm-yyyy' or 'mm/dd/yyyy'. Exa...

environ un an il y a

A résolu


Datetime basics
Generate the datetime scalar representing the current date

environ un an il y a

A résolu


Elapsed Time
Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

environ un an il y a

A résolu


Find the day for a date
Today's day and date will be given to you. By utilising that you need to find the day of the old date. (Date will be in DD/MM/YY...

environ un an il y a

A résolu


Friday the 13th
According to superstition, lots of unpleasant stuff happens on Friday the 13th, so you might like to find the next occurence of ...

environ un an il y a

A résolu


Day counter function
Write a function called day_counter that returns the number of Mondays that fell on the first day of the month in a given year b...

environ un an il y a

A résolu


Count the days
Count the occurrence of a particular day (e.g. Monday) for a given duration.

environ un an il y a

A résolu


How long until the weekend?
Write a function a that takes a date vector as an input and returns the number of hours until the weekend begins. The beginning...

environ un an il y a

A résolu


Days until next NewYear ball drop
Given a date string in the form 'yyyy-mm-dd' or 'yyyy-mm-dd hh:mm:ss', calculate the number of *days* until the dropping of the ...

environ un an il y a

A résolu


sum of non-primes
The sum of the non-primes no larger than 10 is 1+4+6+8+9+10=38 Find the sum of all the positive non-prime integers that do no...

environ un an il y a

A résolu


Nilpotent matrix
Check if matrix A is <http://mathworks.com/ nilpotent>.

environ un an il y a

A résolu


Spherical Volume
Calculate the volume of a sphere.

environ un an il y a

A résolu


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

environ un an il y a

A résolu


area of an annulus
Given the diameter d of the inner circle of the annulus. Given length z of a chord of the outer circle of the annulus. This chor...

environ un an il y a

A résolu


Calculate the probability that at least two people in a group share the same birthday.
Calculate the probability that at least two people in a group share the same birthday. Given an integer input n, return to 0.015...

environ un an il y a

A résolu


Column Removal (★★★)
(copy of prob 7) Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2...

environ un an il y a

A résolu


remove every row&col for every nan
for a given matrix, remove the row and column of every nan. Example x=[1 2 NaN 4 5 6 7 8 ...

environ un an il y a

A résolu


Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...

environ un an il y a

A résolu


row removal
Consider a matrix and remove the first row of the matrix.

environ un an il y a

Charger plus