public class LinkedListPrint { // Node class representing each element in the linked list public static class Node { int […]
Category: BE
Linked List Locate From End
public class LinkedListLocateFromEnd { // Static inner class representing a node public static class Node { int data; Node next; […]
Linked List Deletion
public class LinkedListDeletion { // Static nested class for node public static class IntNode { int data; IntNode link; public […]
Linked List Insertion
public class LinkedListInsertion { // Node class made static & public so it’s accessible public static class IntNode { int […]
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 […]