Community Profile

# Clemens Giegerich

### Sanofi-Aventis Deutschland GmbH

1 140 total contributions since 2012

View details...

Contributions in
View by

Solved

Find 100 from a Matrix and Replace With 0 with less computation time
pls use this matrix x = [208 40 167 180 112 70 192 215 90 19 231 100 9 100 97 100 ...

mer än 6 år ago

Solved

Product of elements in row
Product of matrix such that a=[3 3 1] b=9

mer än 6 år ago

Solved

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. So if input x is x = [1 2 3 5] then the output y should be 11.

mer än 6 år ago

Solved

Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

mer än 6 år ago

Solved

Find the relation
Take x as input and y as output. If x=1 y=3 If x=2 y=14 If x=3 y=39 If x=4 y=84 Based on this relation find giv...

mer än 6 år ago

Solved

Let's see how peculiar we can get
The task is to multiply two numbers. But do it in the most peculiar possible way.

mer än 6 år ago

Solved

Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

mer än 6 år ago

Solved

Find the biggest digit in a matrix
Write a function to find the biggest digit in a matrix; input -> a matrix output -> a digit For example; [12; 47;...

mer än 6 år ago

Solved

Integer to boolean
Write a general function that will create the following conversation; Input is a column vector with integers Output is a b...

mer än 6 år ago

Solved

Determine the length of a string of characters
Determine the length of a string of characters

mer än 6 år ago

Solved

Largest Prime Number
Given a matrix X, find the largest prime number in X.

mer än 6 år ago

Solved

Is My Wife Wrong?

mer än 6 år ago

Solved

Get ranking of a combination looking for speed.
I have the numbers pulled without replacement from the set [1 2 3 4 5 6 7 8 9 10 11 12 13]; They are then ordered from least to...

mer än 6 år ago

Solved

Get ranking of a combination
I have the numbers pulled without replacement from the set [1 2 3 4 5 6 7 8 9 10 11 12 13]; They are then ordered from least to...

mer än 6 år ago

Solved

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

mer än 6 år ago

Solved

Fermat's Last Theorem - Fermat's conjecture
Fermat's Last Theorem (sometimes called Fermat's conjecture, especially in older texts) states that no three positive integers a...

mer än 6 år ago

Solved

Edges of a n-dimensional Hypercube
Return the number of edges on an <http://en.wikipedia.org/wiki/Hypercube _n_-dimensional hypercube> (with an integer n &ge; 0). ...

mer än 6 år ago

Solved

Recurring Cycle Length (Inspired by Project Euler Problem 26)
Preface: This problem is inspired by <http://projecteuler.net/problem=26 Project Euler Problem 26> and uses text from that quest...

mer än 6 år ago

Solved

Best Square-Shaped Grid for Subplot
If you have x number of plots, find the optimum 'm' number of rows and 'n' number of columns for subplotting where the overall f...

mer än 6 år ago

Solved

Measure a Special Distance
Given an n-by-2 matrix with positive and negative numbers, return an n-by-n matrix in the manner of the function template.

mer än 6 år ago

Solved

Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

mer än 6 år ago

Solved

Joining Ranges
You are given a n-by-2 matrix. Each row represents a numeric range, e.g. x = [0 5; 10 3; 20 15; 16 19; 25 25] contains...

mer än 6 år ago

Solved

Solve Quadratic : No * - or key functions permitted
Solve the quadratic equation *ax^2+bx+c=0*. However, some of the normal functions and symbols are not allowed. x=[ -b +/- sq...

mer än 6 år ago

Solved

love is an n-letter word
Given a list of *N words*, return the *N-letter word* (choosing one letter from each word) with the property of having the least...

mer än 6 år ago

Solved

Multiplication
Multiply two numbers in a different manner. The numbers are given to you as vectors x and y. Example x = [ 1 2 0 1 ] ...

mer än 6 år ago

Solved

Three...is a magic number.
Yes it is... It's a magic number... To help you get rid of that earworm, here's a new Cody problem. You are given a squar...

mer än 6 år ago

Solved

Find the jerk
No, it's not the author of this problem... Jerk is the rate of change in acceleration over time of an object. So, if given t...

mer än 6 år ago

Solved

is this number Munchhausen Narcissistic?
in this problem, simply return 1 if a supplied number is Munchhausen narcissistic or 0 if not. eg 153 is narcissistic but not...

mer än 6 år ago

Solved

Usage of java.math : N Choose K with unlimited precision
Calculate the binomial coefficient nchoosek with full accuracy. This challenge may use the wonderful word of java.math that allo...

mer än 6 år ago

Solved

Factorial: Unlimited Size : java.math
This challenge is an application of java.math that allows unlimited precision calculations. The primary reference sites are <ht...

mer än 6 år ago