-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Spectrum-CETB:main' into Sai-Spectrum-HF2022
- Loading branch information
Showing
30 changed files
with
31,913 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include <bits/stdc++.h> | ||
using namespace std; | ||
#define ll long long | ||
|
||
|
||
int main(){ | ||
ios_base::sync_with_stdio(false); | ||
cin.tie(NULL); | ||
int n; | ||
cin >> n; | ||
int arr[n]; | ||
for (int i = 0; i < n;i++){ | ||
cin >> arr[i]; | ||
} | ||
int candidate = arr[0], count = 1; | ||
for (int i = 1; i < n;i++){ | ||
if(arr[i]==candidate){ | ||
count++; | ||
}else{ | ||
count--; | ||
} | ||
if(count==0){ | ||
candidate = arr[i]; | ||
count = 1; | ||
} | ||
} | ||
cout << candidate << endl; | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
projects_Intermediate/WEB_DEVELOPEMENT/Cryptoverse_Prateek-Rath/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Cryptoverse | ||
|
||
<a href="https://github.com/Spectrum-CETB/Spectober_Fest/tree/main/projects_Intermediate"><img src="https://img.shields.io/badge/Projects%20-Intermediate-blue.svg"/></a> | ||
|
||
## Tech Stack | ||
`Javascript` `ReactJS` `Redux` `Ant-design` | ||
|
||
## Description | ||
* Cryptoverse is a cryptocurrency tracker application built with react, where user can get all the information about the top cryptocurrencies, latest market changes, price charts and detailed information about each cryptocurrency's performance, market cap, rankings, growth/fall and all the latest news about the crypto market. | ||
* It fetches the latest crypto data from the coinranking API, and uses Redux-toolkit to implement the functionality and ant-design for an elegant UI. | ||
|
||
## Project Link | ||
Hosted live link (vercel) : [Cryptoverse](https://cryptoverse-iampsr8.vercel.app/) | ||
|
||
# Project Demo View | ||
![](https://github.com/iampsr8/cryptoverse/blob/master/display/crypto1.png) | ||
|
||
![](https://github.com/iampsr8/cryptoverse/blob/master/display/crypto2.png) | ||
|
||
|
||
|
||
|
Oops, something went wrong.