From b2c856f121afaf5666f4032cda94ec2923f29d44 Mon Sep 17 00:00:00 2001 From: saketmundra <76968367+saketmundra@users.noreply.github.com> Date: Wed, 6 Oct 2021 23:18:07 +0530 Subject: [PATCH] Create Squares of a Sorted Array.java --- LeetCode/Squares of a Sorted Array.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 LeetCode/Squares of a Sorted Array.java diff --git a/LeetCode/Squares of a Sorted Array.java b/LeetCode/Squares of a Sorted Array.java new file mode 100644 index 0000000..6e92e1d --- /dev/null +++ b/LeetCode/Squares of a Sorted Array.java @@ -0,0 +1,10 @@ +class Solution { + public int[] sortedSquares(int[] nums) { + for(int i=0;i