We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Grid Challenge
- Discussions
Grid Challenge
Grid Challenge
Sort by
recency
|
445 Discussions
|
Please Login in order to post a comment
yet another exercise where the description is just wrong, plain wrong.
Despite the powerful technical tool and nice UI, this site has a very low quality of content, unfortunately.
The problem states that is will be a square grid of characters. However, one of the tests attempts to input a 3x4 grid.
JS/Javascript Solution, with 3 loops! Any improvement suggestions?
Javascript
function gridChallenge(grid: string[]): string { // Write your code here const sorted_grid = grid.map(row => Array.from(row).sort())
}
The problem description incorrectly uses the term ascending. Ascending is not the same as non-decreasing.