Challenge: Subspace Dimension Finder
Design a Python algorithm to find a subspace dimension.
We'll cover the following
Statement
Write a smallestSubspaceDimensionFinder
function that accepts a collection of four vectors in the , say, .
The function should find and return the dimensions of the smallest subspace that contains these four vectors.
Sample inputs and outputs
The following table provides sample inputs and corresponding outputs.
Input | Output |
---|---|
2 | |
4 |
Try it yourself
The signature of the function is given below:
Get hands-on with 1400+ tech skills courses.