添加 0977.有序数组的平方 PHP版本注释

This commit is contained in:
nolanzzz 2021-09-01 19:03:48 -04:00
parent 484491f840
commit efda64220f
1 changed files with 1 additions and 0 deletions

View File

@ -278,6 +278,7 @@ class Solution {
* @return Integer[]
*/
function sortedSquares($nums) {
// 双指针法
$res = [];
for ($i = 0; $i < count($nums); $i++) {
$res[$i] = 0;