A résolu


Card Game
This is an overly simplified and highly modified version of card game Twenty-Nine. A deck of 100 unique cards (hypothetical) ...

environ 11 ans il y a

A résolu


Solving Quadratic Equations (Version 1)
Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

environ 11 ans il y a

A résolu


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

environ 11 ans il y a

A résolu


FloydWarshall
Our task is to find shortest paths between every pair of nodes. Floyd-Warshall is a graph algorithm for finding shortest paths i...

environ 11 ans il y a

A résolu


Check if vertices form a rectangle
Given a set of 4 vertices defined by vectors X and Y, return true if the vertices form a rectangle and false otherwise. X and...

environ 11 ans il y a

A résolu


Simulating the selection of a state with given probabilities
Lets say we have 3 different states [1,2,3] with the probabilities of occurrences of each state is given as [0.5 0.2 0.3]. Which...

environ 11 ans il y a

A résolu


Permutation
How many different words can be formed using all the letters(together) from a given input word? Input is a string.

environ 11 ans il y a

A résolu


pay it forward
Return any number (integer between 0 and 65535) You will pass this problem if you are the *second* person to choose that nu...

environ 11 ans il y a

A résolu


FInd 10's complement
FInd 10's complement of number <http://electrical4u.com/9s-complement-and-10s-complement/ Example>

environ 11 ans il y a

A résolu


find 9 commandments of number
find 9 commandments of number of following numbers. <http://electrical4u.com/9s-complement-and-10s-complement/ Example> ...

environ 11 ans il y a

A résolu


Fill an array given a sum and array length values
Fill an array with random numbers so that their sum and array length will be equal to the given values as input. Function will ...

environ 11 ans il y a

A résolu


What day is it?
Tell me what day is it. Return the full name of the day of the week as a string. e.g. It's June 12th 2014, so your function s...

environ 11 ans il y a

A résolu


Neither minima nor maxima
Input v is a vector. Return all the elements of v which are not a local minimum or maximum. Example: v = [1 2 3 4 5] Ou...

environ 11 ans il y a

A résolu


Generate this matrix
For a given odd integer n, generate a matrix as follows: Input: n = 5; Output: [ 2 1 0 0 0 1 ...

environ 11 ans il y a

A résolu


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

environ 11 ans il y a

A résolu


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

environ 11 ans il y a

A résolu


Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

environ 11 ans il y a

A résolu


Remove and Sort
Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

environ 11 ans il y a

A résolu


Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that include the four bas...

environ 11 ans il y a

A résolu


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

environ 11 ans il y a

A résolu


Create Combination
Motivation: In many problems, we need to create combinations with the function nchoosek. In some cases, however, choices are lim...

environ 11 ans il y a

A résolu


Distance between two GPS Coordinates
A problem that arises when performing geographically weighted regression is determining the distance between GPS coordinates. GI...

environ 11 ans il y a

A résolu


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

environ 11 ans il y a

A résolu


Sum of big primes without primes
Inspired by Project Euler n°10 (I am quite obviously a fan). With problem n°250 by Doug, you can find some global methods to ...

environ 11 ans il y a

A résolu


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

environ 11 ans il y a

A résolu


Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change. Example: Input ...

environ 11 ans il y a

A résolu


Delete 2nd and 5th column of Given 6*6 matrix
Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

environ 11 ans il y a

A résolu


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

environ 11 ans il y a

A résolu


Append two matrix as shown below example
Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

environ 11 ans il y a

A résolu


Remove the Zero
Given an array n, remove all zeros

environ 11 ans il y a

Charger plus