summaryrefslogtreecommitdiff
path: root/algo1w1/IntOrderedArray.h
diff options
context:
space:
mode:
Diffstat (limited to 'algo1w1/IntOrderedArray.h')
-rw-r--r--algo1w1/IntOrderedArray.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/algo1w1/IntOrderedArray.h b/algo1w1/IntOrderedArray.h
new file mode 100644
index 0000000..914e59f
--- /dev/null
+++ b/algo1w1/IntOrderedArray.h
@@ -0,0 +1,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;
+};
+