DUET PG Score Card 2021
NHAI Recruitment 2021
Bihar Board 12th Dummy Admit Card 2022
RBI Assistant Notification 2021
Jee Advanced 2021 Result
NIACL Assistant Recruitment 2021
SBI PO Online Form 2021

Squares of a Sorted Array Leetcode Solution

Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Example 1: Input: nums = [-4,-1,0,3,10] Output: [0,1,9,16,100] Explanation: After squaring, the array becomes [16,1,0,9,100]. After sorting, it becomes [0,1,9,16,100]. Example 2: Input: nums …

Read more

lambda expressions can be used to represent the instance of a functional interface( lambda expressions are supported java 8 onwards).

Functional Interfaces: Key points: Functional interface contains only one abstract method.  Functional interface can have only one functionality to exhibit.  Functional interface can have any number of default methods.  Note: lambda expressions can be used to represent the instance of …

Read more

L34 Method overloading and Method overriding, Super keyword, Polymorphism, Object Class

// L34 Method overloading and Method overriding, Super keyword, Polymorphism, Object Class A,B,C package q11266; public class Addition {public static void main(String[] args) {int a = Integer.parseInt(args[0]);int b = Integer.parseInt(args[1]);float d = Float.parseFloat(args[2]);float e = Float.parseFloat(args[3]);double h = Double.parseDouble(args[4]);double …

Read more