public class LinkedListInsertion { // Node class made static & public so it’s accessible public static class IntNode { int […]
Category: Java
inheritance
//class ProductApp work as the driver public class ProductApp { public static void main(String[] args) { Product[] list = new […]
SunRise Counter
public class SunriseViewCounter { public static int countBuildings(int[] h, int n) { if (n == 0) return 0; int count […]
search insert position
public class SearchInsertPosition { // Returns the index of target, or the index where it should be inserted public static […]
RoofTop
public class RoofTop { // Returns the maximum number of consecutive increasing steps in the given array public static int […]
CD
/* @startuml class CD { – title: String – artist: String – cost: double – tracks: int + CD(title: String, […]
Recursive Multiply
import java.util.Scanner; public class RecursiveMultiply { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { int […]