Resuelto


Data decompression
A chunk of data is to be 'decompressed'. Input: * compressed: a row vector of uint8 values. This is the compressed data. ...

más de 3 años hace

Resuelto


Word Distance - Sum
Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...

más de 3 años hace

Resuelto


Hangman (strategy)
What is the best strategy in a <http://en.wikipedia.org/wiki/Hangman_(game) hangman> game? Your job is to device a strategy t...

más de 3 años hace

Resuelto


Hangman (easy)
What is the best letter to start a <http://en.wikipedia.org/wiki/Hangman_(game) hangman> game with? You are given a cell arra...

más de 3 años hace

Resuelto


Guess the number I'm thinking of (Part 1)
In this game you are competing against two other people to guess the number that I'm thinking of. I randomly choose an integer ...

más de 3 años hace

Resuelto


Congruent
Given two numbers, check whether they are congruent to each other or not for a particular value N.

más de 3 años hace

Resuelto


multiply by 12
multiply x by 12

más de 3 años hace

Resuelto


raise x to the nth power
use basic math operators and a variable to solve the problem for a given variable n. (make sure "n" is the variable you use)

más de 3 años hace

Resuelto


multiply by 5
multiply x by 5

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


Replace secondary diagonal elements of a square array
Replace all the secondary diagonal elements of the square array A with the number n Example: A = [1 2 3 4 5 6 ...

más de 3 años hace

Resuelto


Accessing values in a cell
You are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors. Your job is to give the bth value in t...

más de 3 años hace

Resuelto


most frequent character
Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...

más de 3 años hace

Resuelto


De-primed
Write a function that will multiply every prime number in the array or matrix by two, leaving all other numbers the same, and re...

más de 3 años hace

Resuelto


Evened up (or not)
You will be provided with an array or matrix that contains various numbers, in addition to an evening variable, e, set to 1 or 0...

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


Datetime basics
Generate the datetime scalar representing the current date

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


Special Relativity 101.
Special relativity states that the effective mass of an object varies as a function of its velocity. If *c* is the speed of ligh...

más de 3 años hace

Resuelto


Who is using Cody?
Return your 'username' as char vector. Hint: no personal info are revealed, just use basic commands (not only Matlab).

más de 3 años hace

Resuelto


matrix zigzag
Unfold a 2-D matrix to a 1-D array in zig-zag order, e.g., for matrix [ 1 2 3 ; 4 5 6 ; 7 8 9 ] the resulting 1-...

más de 3 años hace

Resuelto


Bit calculation
Give me the count of numbers from 1 to n having their last two bits as 0. For example function y = ret_count(4) y = x...

más de 3 años hace

Resuelto


Musical Note Interval 1 - Diatonic Scale
Assuming a simple diatonic C scale, calculate the interval (integer) between two notes (provided as strings). By applying number...

más de 3 años hace

Cargar más