-
Notifications
You must be signed in to change notification settings - Fork 0
/
CodilityAlgorithms.h
32 lines (31 loc) · 1.13 KB
/
CodilityAlgorithms.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <string>
#include <vector>
int binaryGap(int N);
std::vector<int> cyclicRotation(std::vector<int>& A, int K);
int oddOccurrencesInArray(std::vector<int>& A);
int frogJmp(int X, int Y, int D);
int permMissingElem(std::vector<int>& A);
int tapeEquilibrium(std::vector<int>& A);
int frogRiverOne(int X, std::vector<int>& A);
int permCheck(std::vector<int>& A);
std::vector<int> maxCounters(int N, std::vector<int>& A);
int missingInteger(std::vector<int>& A);
int passingCars(std::vector<int>& A);
int countDiv(int A, int B, int K);
int distinct(std::vector<int>& A);
int maxProductOfThree(std::vector<int>& A);
int triangle(std::vector<int>& A);
int brackets(std::string& S);
int fish(std::vector<int>& A, std::vector<int>& B);
int nesting(std::string& S);
int stoneWall(std::vector<int>& H);
int dominator(std::vector<int>& A);
int equiLeader(std::vector<int>& A);
int maxProfit(std::vector<int>& A);
int maxSliceSum(std::vector<int>& A);
int maxDoubleSliceSum(std::vector<int>& A);
int countFactors(int N);
int minPerimeterRectangle(int N);
int flags(std::vector<int>& A);
int chocolatesByNumbers(int N, int M);
int absDistinct(std::vector<int>& A);