Given a vector x and an integer n, convert x to a vector of length n by (1) chopping off the end if it is too long, or (2) adding zeros to the end if it is too short. If x is a character vector, then add blanks to the end instead of zeros.
I love vector problems with classically-inspired titles! Good old Procrustes...
10758 Solvers
Number of 1s in the Binary Representation of a Number
319 Solvers
Make an awesome ramp for a tiny motorcycle stuntman
262 Solvers
116 Solvers
100 Solvers