You are viewing a single comment's thread. Return to all comments →
Improving the solution from Malkard, here is my simple solution for MySQL:
set @number = 21; select repeat('* ', @number := @number - 1) from information_schema.tables;
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Draw The Triangle 1
You are viewing a single comment's thread. Return to all comments →
Improving the solution from Malkard, here is my simple solution for MySQL: