I was able to submit a solution that was finally accepted. That said, my first attempt at a solution was getting the correct answer for every test suite scenario when it was run on the desktop version of the MATLAB, but the solution was nevertheless rejected. All I was doing was setting the end of a character vector to being empty (e.g. z(end) = [];), and I was being warned to use a logical or scalar value. This is a legitimate MATLAB command though.
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: United States.
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.