Skip to content

Instantly share code, notes, and snippets.

View Zyro9922's full-sized avatar
🕷️
Boo!

Ali Hasan Zyro9922

🕷️
Boo!
  • Amazon
  • Bengaluru
  • 21:14 (UTC -12:00)
  • LinkedIn in/zyro9922
View GitHub Profile
#include <iostream>
using namespace std;
int main()
{
int n,r,c;
cin>>n;
//first line
//ALI
#include <iostream>
using namespace std;
int main()
{
int trial=0,n,x; // trial -> no. of trial n -> no. of TA's x -> amount of money
#include <iostream>
#include <string.h>
using namespace std;
int numPal(char s[1000])
{
int ans = 0;
//odd loop
#include <iostream>
using namespace std;
char digToChar(int n)
{
return n + 'a' - 1;
}
void stringCodes(char inp[], int be, char ansSoFar[], int i)
#include<iostream>
using namespace std;
class Node{
public:
int data;
Node* next;
Node(int x)
#include <iostream>
using namespace std;
//Blueprint for our NODE
class Node{
public:
int data;
Node* next;
// ctor1
#include<iostream>
using namespace std;
class Node{
public:
long data;
Node* next;
Node(long x)
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
//TOP
#include<iostream>
using namespace std;
void makeArray(int* A, int n)
{
for(int i = 0 ; i < n ; i++)
cin>>A[i];
return;
}
public int centeredAverage(int[] nums) {
int max = nums[0];
int min = nums[0];
int countMax = 0, countMin = 0;
for (int i = 0; i < nums.length; i++) {
if (nums[i] >= max) {
max = nums[i];