Solved


Solve the snake puzzle

18 days ago

Solved


Number of images formed due to two inclined mirrors and their coordinates
There are two mirrors with angle theta between them and there is an object on x axis. Determine the number of images formed and ...

18 days ago

Solved


4D Hypercube Validation with Prime-Indexed Symmetry and Modular Trace Constraints
Design a function that generates and validates a 4D hypercube matrix where: 1. Prime-Indexed Symmetry: Every 2D slice `A(i,j...

18 days ago

Solved


IQpuzzler Challenge #1: Find all possible solutions with 2 pieces already on the board and fixed orientation of all other pieces
IQpuzzler is a one player board game. The 2D version provides a rectangular board with 5-by-11 spaces and 12 colored pieces (con...

18 days ago

Solved


Battleship - Seaman Level
<http://www.conceptispuzzles.com/index.aspx?uri=puzzle/battleships Games Magazine Battleships> is a logic puzzle to find the Fle...

18 days ago

Solved


Undocumented MATLAB tricks No. 2 - Tell the parfor index
Your function is called in multiple for-loops, and the loop indices are given to your function. One of these indices are from a ...

18 days ago

Solved


Optimize the Tollbooths
Your company has recently built its own highway from which they hope to generate some revenue. The highway has no branches or in...

18 days ago

Solved


DNA Sequence Assembly

18 days ago

Solved


Generate Convolution Matrix of 2D Kernel with Different Convolution Shapes (Full, Same, Valid)
In this problem the challenge is to build the Matrix Form equivalent of the function `conv2()` of MATLAB. The function to be ...

18 days ago

Solved


Troubles With Spaces - Convert Some Messy Data Into A Clean Array
I have a bunch of messy data I have to go through. The data is stored in an odd format, so str2num isn't working. And even when ...

18 days ago

Solved


Determine Center of Mass for a Set of Floating Spheres
Each sphere has a position determined by theta (x,y plane angle) and tau (elevation angle) as well as L, the distance of the cen...

18 days ago

Solved


Largest Small n-Polygons or Biggest Little Polygon
Largest Small n-Polygons or Biggest Little Polygon for a number n is the polygon that has diameter one and that has the largest ...

18 days ago

Solved


Which YAxis does this Graphic object belong to?
Your function gets a graphic object in an Axes that has 2 YAxis. Can you determine which YAxis does this object belong to? I pr...

18 days ago

Solved


nth permutation of 11...100...0
Given some number of ones and zeros, numOnes and numZeros respectively, find the nth permutation of the vector [ones(1,numOnes),...

18 days ago

Solved


IQpuzzler Challenge #2: Find all possible solutions on an empty 4-by-5 board with 5 pieces, rotating and flipping pieces allowed
We are playing a simplified version of IQpuzzler, with a smaller board of 4-by-5 spaces and just 5 pieces, as shown in the pictu...

18 days ago

Solved


Recurssive serie
let the numerical serie U(n) such as U(n+1)= 0.2U(n) + 0.3U(n-1) ; U(0) = a ; U(1) = b the goal is to plot the elements of this...

18 days ago

Solved


Rearrange coefficients after block based DCT transform.
Two dimensional block-based discrete cosine transform <http://en.wikipedia.org/wiki/Discrete_cosine_transform#DCT-II (DCT-II)> i...

18 days ago

Solved


BattleShip - Petty Officer (Level 2)
<http://www.conceptispuzzles.com/index.aspx?uri=puzzle/battleships Games Magazine Battleships> is a logic puzzle to find the Fle...

18 days ago

Solved


Integer vector optimal lossless deduplication
You're given an integer vector A, a Min scalar and a Max scalar. You can assume all elements in A are in [Min,Max] range, and nu...

19 days ago

Solved


Create spiral matrices
Create a matrix of a given size with sequential elements spiraling inward. For matrix height m and width n, the output should ...

19 days ago

Solved


Find the Fourier coefficients of a periodic function
For the a given periodic function, f, calculate the first N Fourier coefficients. The inputs to your function must be one period...

19 days ago

Solved


Solve the 2-norm Regularization Problem
In data fitting, regularization is a technique to stabilize an ill-posed problem. <https://en.wikipedia.org/wiki/Tikhonov_regula...

19 days ago

Solved


You are constantly moving at a speed v faster than your twin brother. How long does it take before you become 1s younger than him according to the theory of relativity?
You are moving at a speed of v_in (km/h) relative to your twin brother of the exact (even in seconds) same age. Define: gam ...

19 days ago

Solved


Flip the right coin to survive!
Write a function to solve the problem mentioned below. The chessboard 8x8 matrix will be filled with coins randomly and given to...

19 days ago

Solved


Create a "map" of 2D wavelet coefficients
Generate a matrix that for an image of size r*2^S by c*2^S indicates index of the wavelet subbands after <http://en.wikipedia.or...

19 days ago

Solved


Find the phi variation as a function of distance after solving through finite volume method. Return dphi/dx at all faces in form of array.
The question is a NPTEL online course assignment question. I have put it here becuase I wanted to create a problem set for num...

19 days ago

Solved


IQpuzzler Preparation #3: Detect isolated groups of zeros in a matrix
Return true if any small, rectangular shaped, isolated groups of zeros (size 1x1, 1x2, 2x1, 1x3, 3x1 or 2x2) are present in a ma...

19 days ago

Load more