Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively
約1年 前
解決済み
Matrix Rotation by 90 Degrees
In this problem, you are tasked with rotating a given matrix by 90 degrees in a counter-clockwise direction. The input will be a...
Add two numbers
Calculate the sum of two numbers.
Example
input = [2 3]
output = 5
約1年 前
解決済み
Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros.
Exam...
Energy of a photon
⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛
Given the frequency F of a photon in giga hertz.
Find energy E of this photon...
約1年 前
解決済み
Missing five
Convert decimal numbers to a base-9 notation missing the digit *5*
<<http://www.alfnie.com/software/missing5.jpg>>
Too man...
約1年 前
解決済み
Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ).
For exampl...
約1年 前
解決済み
De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if
a =...
約1年 前
解決済み
Counting in Finnish
Sort a vector of single digit whole numbers alphabetically by their name, in Finnish.
See the Wikipedia page for <http://en.wik...
約1年 前
解決済み
Sleeping Queens 1
My youngest daughter received a card game named Sleeping Queens for Christmas this year, and has been playing it nearly non-stop...
約1年 前
解決済み
Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>.
The input string will always be provi...
約1年 前
解決済み
The twelve days of Christmas
Traditionally there are twelve days of Christmas to celebrate ("Twelvetide"), typically starting with Christmas Day (25 December...
Swap Characters of a Single Word
Description:
In the given input word, convert the lower case to upper case and vice versa.
A to a, a to A ...
Example:
'Matl...