Community Profile

photo

Sean Kavanagh


Last seen: 20 Tage vor Aktiv seit 2018

Statistiken

All
  • Combinatorics I Master
  • Community Group Solver
  • ASEE Challenge Master
  • Cody Challenge Master
  • Solver

Abzeichen anzeigen

Content Feed

Anzeigen nach

Beantwortet
How do I stop Simulink pausing every quarter second?
In case anyone else has the same problem: This turned out to be a result of Display blocks in the model. They seem to update at...

4 Monate vor | 0

| akzeptiert

Frage


How do I stop Simulink pausing every quarter second?
I have a Simulink model that receives a UDP packet, does some calculations and transmits a reply packet. This works extremely we...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Gelöst


Full combinations
Given n input vectors x1, x2, …, xn, generate a p*n matrix y whose rows contain all element-wise combinations of the vectors x1,...

mehr als 4 Jahre vor

Gelöst


So many choices
For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

mehr als 4 Jahre vor

Gelöst


Create all combinations of vectors
This function exists in the Neural Network Toolbox but is not available in Cody. Can you write such a function? See <http://...

mehr als 4 Jahre vor

Gelöst


Lowest sum from a group of digits
Hi there. It's James's daughter here again, and my third grade math teacher is up to her old tricks. This time, she's giving u...

mehr als 4 Jahre vor

Gelöst


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

mehr als 4 Jahre vor

Gelöst


Kurchan 5x5 - Optimal Score
Related to Problems 1646 and 2650, but bigger. Technically, all you need to do for this Cody problem is input a 5x5 matrix conta...

mehr als 4 Jahre vor

Gelöst


Kurchan 4x4 - Optimal score
Related to Problem 1646, but bigger. Technically, all you need to do for this Cody problem is input a 4x4 matrix containing the...

mehr als 4 Jahre vor

Gelöst


Kurchan 3x3 - Optimal Score
Find an optimal 3x3 Kurchan square, score of 198. A 3x3 Kurchan square has values 1:9.The products of each row, column, diag...

mehr als 4 Jahre vor

Gelöst


Kurchan Square - Evaluation Function
Evaluate a Kurchan square. An NxN square with values 1:N^2. Given a square matrix determine the products of each row, column,...

mehr als 4 Jahre vor

Gelöst


What can you get for exactly amount of money(harder)
Inspired by "Problem 42996. what can you get for exactly amount of money" <https://ww2.mathworks.cn/matlabcentral/cody/problems...

mehr als 4 Jahre vor

Gelöst


what can you get for exactly amount of money
You go to store, where each product has price. Prices are in vector s = [ 195 125 260 440 395 290] and you have amount ...

mehr als 4 Jahre vor

Gelöst


Exponents in Factorials
It's time to get excited about numbers!!! Well, we're just dealing with factorials here, but it's still a good reason to get ex...

mehr als 4 Jahre vor

Gelöst


Highest powers in factorials
This is the inverse of the problem <https://www.mathworks.com/matlabcentral/cody/problems/44747 Exponents in Factorials>. Inste...

mehr als 4 Jahre vor

Gelöst


Generate binary combinations for a given number of bit(s)
Generate the binary combination as in the example below. Example: If you are given: bin_comb(2) The answer will be: ...

mehr als 4 Jahre vor

Gelöst


Number of cyles and fixed points in a permutation
A permutation can be constructed from one or more sets of elements in cyclic order. A permutation in a single row vector form ...

mehr als 4 Jahre vor

Gelöst


Break it up! Break it up!
You have N pennies. Write a Matlab script that will reveal how many different ways you can break up those pennies. For example...

mehr als 4 Jahre vor

Gelöst


Project Euler: Problem 18, Maximum path sum I
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bott...

mehr als 4 Jahre vor

Gelöst


Find the path through the cell
A list of cells is given. Return true if the elements of the list increase monotonically (each element is strictly larger tha...

mehr als 4 Jahre vor

Gelöst


Yet Another Path Finder
Assume there is a rectangular grid of points. These points are indicated by linear indices in a MATLAB-fashion. Some of the grid...

mehr als 4 Jahre vor

Gelöst


possible ways through matrix
This problem is inspired from problem 2405 <https://www.mathworks.com/matlabcentral/cody/problems/2405-the-number-of-ways>. C...

mehr als 4 Jahre vor

Gelöst


The Number of Ways
Find all the possible ways to reach the end of a matrix. So given [a b c d] the possible ways [a c],[a d],[b c],[b ...

mehr als 4 Jahre vor

Gelöst


How many rectangles in a grid ?
How many rectangles are there in an m × n grid ? For example, if m=1 & n=2, we have 3 rectangles.

mehr als 4 Jahre vor

Gelöst


Which way to go?
Given an m*n grid, How many ways are there to go from upper left corner to the lower right one? You can only move right...

mehr als 4 Jahre vor

Gelöst


Number of paths on a n-dimensional grid
This problem is inspired by <https://www.mathworks.com/matlabcentral/cody/problems/1483-number-of-paths-on-a-grid> and <https:/...

mehr als 4 Jahre vor

Gelöst


Number of paths on a 3d grid
This problem is inspired by <https://www.mathworks.com/matlabcentral/cody/problems/1483-number-of-paths-on-a-grid>, which you mi...

mehr als 4 Jahre vor

Gelöst


Number of paths on a grid
Consider a grid formed by n vertices vertically down, and m vertices horizontally right. Your starting point is at the top lef...

mehr als 4 Jahre vor

Gelöst


Path of least resistance - Move all direction
Extension of the wonderful <https://www.mathworks.com/matlabcentral/cody/problems/1049-path-of-least-resistance Problem 1049> (P...

mehr als 4 Jahre vor

Gelöst


Path of least resistance
Find the length of the shortest path through the matrix from the top left to bottom right corner. You may move right, down, or d...

mehr als 4 Jahre vor

Mehr laden