Problem 43119. 3D indexes
Generalisation in 3 dimensions of the Problem 43117. 2D Indexes
Given in input the maximum degree P, the algorithm furnishes a ordered list of 3 dimensional vectors [i,j,k] i,j,k>=0 such that i+j+k<=P-1
P=2 indexes=[0,0,0;1,0,0;0,1,0;0,0,1] P=3 indexes=[0,0,0;1,0,0;0,1,0;0,0,1;2,0,0;1,1,0; 1,0,1; 0,2,0; 0,1,1;0,0,2]
Solution Stats
Problem Comments
- 
		1 Comment
		Rafael S.T. Vieira
    	on 25 Sep 2020
	
	
  	Once again, the requested zig-zag order should probably be added to the problem description. Or the problem should allow answers in any order.
Solution Comments
Show commentsProblem Recent Solvers12
Suggested Problems
- 
         Sort a list of complex numbers based on far they are from the origin. 5730 Solvers 
- 
         Maximum running product for a string of numbers 2215 Solvers 
- 
         Getting the row and column location from a matrix 293 Solvers 
- 
         
         626 Solvers 
- 
         
         532 Solvers 
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!