Science Score: 18.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic links in README
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Unable to calculate vocabulary similarity
Last synced: 10 months ago
·
JSON representation
·
Repository
Basic Info
- Host: GitHub
- Owner: Sahil-Vij
- Default Branch: main
- Size: 194 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Created over 3 years ago
· Last pushed over 3 years ago
Metadata Files
Citation
Owner
- Login: Sahil-Vij
- Kind: user
- Repositories: 1
- Profile: https://github.com/Sahil-Vij
Citation (citation index calculations)
import java.io.*; // for handling input/output
import java.util.*; // contains Collections framework
// don't change the name of this class
// you can add inner classes if needed
class Main {
public static void main (String[] args) {
// Your code here
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
// int n=arr.length;
int arr[] =new int[n];
for(int i =0; i<n;i++){
arr[i]=sc.nextInt();
}
// hIndex(A, n);
// }
// static void hIndex(int A [], int n){
// int hindex=0;
// int low=0, high=n-1;
// while(low<=high)
// {
// int mid=(low+high)/2;
// if(A[mid]> (mid+1)){
// low=mid+1;
// hindex=mid+1;
// }
// else{
// high=mid -1;
// }
// }
// System.out.println(hindex);
boolean bl = false;
for(int i=arr.length-1; i>=0; i--){
int count = 0;
for(int j=0; j<arr.length; j++){
if(arr[j]>=i+1){
count++;
}
}
if(count>=i+1){
System.out.println(i+1);
bl = true;
break;
}
}
if(bl==false){
System.out.println(0);
}
}
}