Gelöst


Annoying population
Every year the number of annoying persons in the office triples Found the population, given a(0) and t

mehr als 3 Jahre vor

Gelöst


Recursion at variable input
input of any length a =2 b =2 c =3 output = (a^b)^c = 64

mehr als 3 Jahre vor

Gelöst


Primes Checker
Given variable inputs Check if they are prime numbers

mehr als 3 Jahre vor

Gelöst


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 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

mehr als 3 Jahre vor

Gelöst


Convert decimal to binary and then generate the minimum binary it can with jumbling
input is 10 --> 1010 output should be 3 --> 0011 input 23 --> 10111 output should be 15 --> 01111

mehr als 3 Jahre vor

Gelöst


Circular Shift Me
Given a vector v=[1 3 6 9 11], circular shift them while iterating m=[1 3 6 9 11; 11 1 3 6 9; 9 11 1 3 6; 6 9 11 1 3; 3 6 9 1...

mehr als 3 Jahre vor

Gelöst


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


Create a code for XNOR
Given two inputs, output XNOR of those two

mehr als 3 Jahre vor

Gelöst


Create sine function out of cosine
Please don't use sin(x) directly

mehr als 3 Jahre vor

Gelöst


Create Truth Table of Size according to input
Create a Truth Table Example: n = 3 output = [0 0 0; 0 0 1; 0 1 0; 0 1 1; 1 0 0; 1 0 1; 1 1 0; 1 1 1]

mehr als 3 Jahre vor

Gelöst


Create tangent function out of cosine only
Please don't use tangent and sine functions

mehr als 3 Jahre vor

Gelöst


Clipper Function
Create a function that emulates a clipper circuit Given sin wave, t and the constant value for clipping, and the direction to re...

mehr als 3 Jahre vor

Gelöst


Beat the test suite if you can :)
Solve this problem based on clues in the test suite.

mehr als 3 Jahre vor

Gelöst


give-nth-decimal-place-of-pi up to 100 digits
max 100th place after the decimal point this is upgrade problem of 142

mehr als 3 Jahre vor

Gelöst


Is it an Armstrong number?
An Armstrong number of three digits is an integer such that the sum of the cubes of its digits is equal to the number itself. Fo...

mehr als 3 Jahre vor

Gelöst


Find the next square number
Given one or more integers n, find the next integer that is a square, for each of them. Example 1: n = 1; out = 4; ...

mehr als 3 Jahre vor

Gelöst


Sum sum!!!
Sum the numbers from 1 to n

mehr als 3 Jahre vor

Gelöst


factorial
calculate x!

mehr als 3 Jahre vor

Gelöst


Square
square root of x

mehr als 3 Jahre vor

Gelöst


Percentage profit:2
If you are selling at x dollar, you are facing r1% profit; what will be the selling price for making r2% profit?

mehr als 3 Jahre vor

Gelöst


Matrix Pattern 6

mehr als 3 Jahre vor

Gelöst


Convert hex color specification to MATLAB RGB
Here's something that comes up all the time if you deal with web pages. Given a <http://www.w3schools.com/html/html_colors.as...

mehr als 3 Jahre vor

Gelöst


Create cell array of strings
Convert the input to a cell array, but only if necessary. If the input is a string, return a 1-by-1 cell array containing the...

mehr als 3 Jahre vor

Gelöst


Count given word x in text.
Count how many times given word x repeats in text.

mehr als 3 Jahre vor

Gelöst


Find the volume of cone
Find the volume of cone, when given radius(r) and height(h).

mehr als 3 Jahre vor

Gelöst


convert binary string to vector!!!

mehr als 3 Jahre vor

Gelöst


Convert Hard Drive marketing sizes to actual data sizes
Hard drive sizes are typically marketed using the decimal meaning of prefixes, whereas RAM uses binary meanings. For example: ...

mehr als 3 Jahre vor

Gelöst


Circumscribed circles
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5

mehr als 3 Jahre vor

Gelöst


Accessing elements on the diagonal
Access the diagonal elements of a matrix without 'diag' function

mehr als 3 Jahre vor

Mehr laden