summaryrefslogtreecommitdiff
path: root/algo1w1/IntOrderedArray.h
blob: 914e59f685343a3caccf9dcc68e94a18c009a01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

class IntOrderedArray {
public:
	IntOrderedArray();
	virtual ~IntOrderedArray();

public:
	virtual void exploreBinarySearch(int) const;

public:
	virtual int getLastElementSmallerOrEqualTo(int) const;
	virtual void moveElementsOnePositionToRight(int);

	virtual int quickInsert(int);

public:
	virtual void showAll() const;

private:
	int _collection[20] = { 0 };
	unsigned _collectionSize = 0;
};