Skip to content

Instantly share code, notes, and snippets.

View mayanknc's full-sized avatar
🏠
Working from home

Mayank Chikhaliya mayanknc

🏠
Working from home
View GitHub Profile
import java.util.Scanner;
import java.util.Stack;
public class LeaderInArray {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int t=sc.nextInt(),n;
for(int tc=0;tc<t;tc++){
n=sc.nextInt();
package com.mayanknc1;
public class Main {
public static void main(String[] args) {
//Runtime polymorphism can't be achieved by data members. It can be achieved by Methods only
A x = new A();
x.print();