Skip to content

Instantly share code, notes, and snippets.

@hanool
hanool / LeetCodeQuestions.md
Last active January 2, 2022 14:29
Curated List of Top 75 LeetCode
/**
* @param {number[]} nums ascending sorted array of int
* @return {number[]}
*/
var sortedSquares = function (nums) {
var squaredNums = nums.map(function (val) {
return val * val;
});
var leftToRight = 0;