Solved

Neural Net: Calculate Perceptron
This challenge is to calculate the Neural Net Perceptron value,P, given X, WH, and WP using ReLU on the hidden layer. This examp...

10 months ago

Solved

Neural Net: Calculate Bias Single Perceptron (AND/NAND/OR/NOR/XOR)
This challenge is to calculate the Neural Net Bias Perceptron vector,P, given X, WH, and WP using ReLU on the hidden layer. Test...

10 months ago

Solved

Neural Nets: Activation functions
Return values of selected Activation function type for value,vector, and matrices. y=Activation(x,id); where id is 1:4 for ReLU...

10 months ago

Solved

Neural Net: Best Index of Prediction array
The final ouput of a neural net application is a Prediction matrix/vector,P, that gives the probability of the input being of a ...

10 months ago

Solved

Throwing Dice - Will You Be Eaten By The Dragon?
You and a dragon have agreed to let dice rolls determine whether it eats you or not. The dragon will roll a single die, of x si...

10 months ago

Solved

Draw the Greek letter 'α'
Given the dimensions of a matrix nRow and nCol where nCol > nRow, draw the Greek letter 'α' with 1's and 0's. You can consider t...

11 months ago

Solved

String vowel manipulation
Given a string, find all the vowels and shift them to the end of the string in the same order as they are found.

11 months ago

Solved

Make a (better) checkerboard matrix
This problem seeks to expand the task in Cody Problem 4 by allowing for the creation of checkerboard matrices that can be rectan...

11 months ago

Solved

Find the Peak Particle Velocity on a ETL structure
PPV is a vibration parameter that can connect stress to a structure, it is measured in mm/s or mm/s-1. The higher the PPV the mo...

11 months ago

Solved

Array Height (no usage of size)
Find the array height, the number of rows. Size may not be used.

11 months ago

Solved

Array Width (no usage of size)
Find the array width. Size may not be used.

11 months ago

Solved

Array size along k-th dimension
Given an n-dimensional array M, find the size of M along the k-th dimension (1 <= k <= n), without using size(), height() or wid...

11 months ago

Solved

Count collisions in an idealized block system
Two blocks, which have masses and , slide along a frictionless, semi-infinite track bounded by a stationary wall. Initially blo...

11 months ago

Solved

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

11 months ago

Solved

Getting Maximum Chocolate
John loves Chocolate but he didn't have money. The owner of "Sweet Chocolate" launches a scheme for free chocolate. He divided a...

11 months ago

Solved

Implement Euler's formula for calculating polyhedron edges
Your function will take as input the number of faces f and number of vertices v of a polyhedron. It will output the number of ed...

11 months ago

Solved

Kaprekar Steps
6174 is the Kaprekar constant. All natural numbers less than 10,000 (except some with same digits) can be reduced to 6174 in the...

11 months ago

Solved

How many revolutions around the earth
Calculate how many revolutions you will around the earth till 1/1/2100. Given the birhdate find your age in number of days on 1...

11 months ago

Solved

Word with Highest Frequency
Write a MATLAB function that takes in a string and returns the word with the highest frequency in the string. The function shoul...

11 months ago

Solved

Convert row and column subscripts to linear indices
Convert 2D row and column subscripts to linear indices WITHOUT sub2ind Example: row = [1 2 3 1]; col = [2 2 2 3]; sz = [3 3]...

11 months ago

Solved

Matrix spiral
Make a spiral in a (n*n) matrix. The spiral has to start in the top left, and has to rotate clockwise to the center. The spiral ...

11 months ago

Solved

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

12 months ago

Solved

Finding valleys
You have a vector of altitudes (units are arbitrary) and need to find the depths of all the valleys. You also need to determine ...

12 months ago

Solved

Calculate the volume of the intersection of two balls
Consider two balls (solid spheres) in , with radius and respectively. Suppose that the distance between the centers of the two...

1 year ago

Solved

Sign of IEEE Single
Output the sign bit of the IEEE representation of the single-typed 32-bit float input as the uint8 "1" or the uint8 "0".

1 year ago

Solved

Minimum number of crossings in a complete bipartite graph
This problem is related to problem 58389. A complete bipartite graph may be drawn in different ways, such that the number of li...

1 year ago

Solved

Determine whether a number is prome
In discussing the unique factorization of numbers in Elementary Number Theory, Underwood Dudley devised a new number system: “C...

1 year ago

Solved

Draw '5' in Chinese.
Draw a x-by-x matrix '五' using 1s and 0s. Example: x=5 ans= [1 1 1 1 1 0 1 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 1 1 1] x=7...

1 year ago

Solved

Create an empty array
Suppose you need an empty array. e = [] will give you one, but it's a double array, which may not help if you need a differen...

1 year ago

Solved

Find the circle inscribed in a triangle
Write a function that takes the x- and y-coordinates of three points describing the vertices of a triangle and returns the cente...

1 year ago