Content-Length: 257061 | pFad | http://github.com/Saikat2407/DSA_Hacktoberfest/pull/91/files

6F Create DIVCLASS.java by Himalaya001 · Pull Request #91 · Saikat2407/DSA_Hacktoberfest · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create DIVCLASS.java #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions Leetcode/DIVCLASS.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

import java.util.*;
import java.lang.*;
import java.io.*;


class MyCode
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
Scanner scan=new Scanner(System.in);
int T=scan.nextInt();
while(T-->0)
{
int N=scan.nextInt();
int a[]=new int[N];
HashSet<Integer> hs=new HashSet<Integer>();
for(int i=0;i<N;i++)
{
a[i]=scan.nextInt();
hs.add(a[i]);
}
if(N<12)
{
System.out.println("no");
}
else
{
if(hs.size()>12)
System.out.println("no");
else
System.out.println("yes");
}
}
}
}








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Saikat2407/DSA_Hacktoberfest/pull/91/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy