Risolto


Sky full of stars - 03
draw the following pattern with asterisks. For example, for n=6 '************' '***** *****' '**** ****' ...

oltre 5 anni fa

Risolto


MinMax
* x=[2 4 3 1 6 4 6] * output , y=[1 6 2 4 3] here,y(1) is the minimum of x, y(2) is the maximum of x, y(3) is the 2nd mini...

oltre 5 anni fa

Risolto


Fault in our Stars - 02
Create a window pattern with h-horizontal bars and v-vertical bars. For example, for h=4,v=4 '**********' '* ...

oltre 5 anni fa

Risolto


Sieve of Eratosthenes
Find the nth lucky prime number. <https://planetmath.org/luckyprime> can u find a way for large n?

oltre 5 anni fa

Risolto


How lucky r u ?
Find the nth number in the following sequence <https://oeis.org/A264940>

oltre 5 anni fa

Risolto


Queen's move
given a number of consecutive moves of queen, check for their validity based on their previous position.... but remember if u g...

oltre 5 anni fa

Risolto


No of squares in a grid
given a m*n grid calculate the no of possible squares & rectangles on that grid. output: y=[no of rectangles , no of sqa...

oltre 5 anni fa

Risolto


another bullseye
create matrix like below -- for x=2, y=[1 1 1 1 1; 1 2 2 2 1; 1 2 3...

oltre 5 anni fa

Risolto


Amicable pair
Amicable numbers are two different numbers such that the sum of the proper divisors of each is equal to the other number. For...

oltre 5 anni fa

Risolto


Yoonir - 02
Find the area of a six-pointed star inscribed in a circle of radius r.

oltre 5 anni fa

Risolto


chess position
given the position of a chess piece in algebric notation, convert it into 8 by 8 matrix format. For example, * 'Qd5' >> [3,4]...

oltre 5 anni fa

Risolto


En passant - 01
This is white's turn. The player moves his pawn. The pawn's previous and current positions are given. Determine whether th...

oltre 5 anni fa

Risolto


Fault in our Stars - 01
Create a ladder pattern with n-steps and b-width. For example, For n=2, b=5 -- the ladder would look like - '* ...

oltre 5 anni fa

Risolto


Most Frequent Word - 01
Given a document file or a character array, find out the most frequent word in that document. In the case of multiple words -...

oltre 5 anni fa

Risolto


Decimal to binary conversion (without using built-in function)
convert the given decimal number to its equivalent binary without using built-in function. * n=18 * out='10010'

oltre 5 anni fa

Risolto


Abelian Sandpile - 02
Generate a matrix like Abelian Sandpile where the four corner element is n. For example, n=4 [4 3 2 1 ...

oltre 5 anni fa

Risolto


Check transmitted data follow even parity (True or false)
Check transmitted data follow even parity (True or false) <http://en.wikipedia.org/wiki/Parity_bit/ Parity Bit> Say, '010...

oltre 5 anni fa

Risolto


Number of Flip Flop required in ripple counter
Find the number of flip flop required in ripple counter. If modulus of counter (N) is given find outnumber of Flip Flop (n) r...

oltre 5 anni fa

Risolto


Convert Decimal Number to Hex number (including non integer value)
Convert Decimal Number to Hex number (including non integer value) E.X. (2598.675) in decimal = A26.ACCC in hexa

oltre 5 anni fa

Problema


Solve a nonlinear difference equation

oltre 5 anni fa | 1 | 27 risolutori

Risolto


adding huge numbers
Write function called huge_add that adds together two positive integers of any length specified as char vectors using decimal n...

oltre 5 anni fa

Risolto


surface of parallelogram
Given 2 vectors of each 3 elements, determine the surface of the parallelogram which can be created from these 2 vectors.

oltre 5 anni fa

Risolto


Tony's trick for duplicating an mx1 vector n times
Without using repmat, or for loop, or concatenation, create a function to duplicate a vector, v, a specified number of times, n....

oltre 5 anni fa

Risolto


matrix rows and columns

oltre 5 anni fa

Risolto


unsolvable

oltre 5 anni fa

Risolto


Number of occurrences of letter in a text
Given an input text either as a string or as a cell array of strings, return a (1 x 26) matrix containing the number of occurren...

oltre 5 anni fa

Risolto


Quadratic equation
given three inputs (a, b, c) for the equation a*x^2+b*x+c=0; return 1 if the roots are complex (non zero imaginary), and 0 if th...

oltre 5 anni fa

Risolto


Adjoint matrix
given a matrix a, find the adjoint matrix of a.

oltre 5 anni fa

Risolto


Can the knight take out the pawn?
* position of knight = k * position of pawns = p can the knight take out those pawns? * k='Nf4' * p={'g6','g7'} then...

oltre 5 anni fa

Risolto


How many Christmas presents under the tree?
For many families at Christmas, each family member gives 1 present to every other family member. The main exception is that chil...

oltre 5 anni fa

Carica altro