mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
添加 0977.有序数组的平方 PHP版本注释
This commit is contained in:
@ -278,6 +278,7 @@ class Solution {
|
||||
* @return Integer[]
|
||||
*/
|
||||
function sortedSquares($nums) {
|
||||
// 双指针法
|
||||
$res = [];
|
||||
for ($i = 0; $i < count($nums); $i++) {
|
||||
$res[$i] = 0;
|
||||
|
Reference in New Issue
Block a user