Skip to content

Commit 8042a54

Browse files
Merge branch 'feature/bread3njoyer'
style: make it easier to switch between sequential list and hash tables
2 parents c2221dc + 0c3b7b9 commit 8042a54

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class Data
4141

4242
Data::Data()
4343
{
44-
size = 0;
45-
//hashTable.resize(size);
44+
size = 1000;
45+
hashTable.resize(size);
4646
}
4747

4848
Data::Data(int sizeIn)
@@ -67,6 +67,7 @@ void Data::Delete(string key)
6767
void Data::LookUp(string key)
6868
{
6969
Value record = seqLookUp(key);
70+
// Value record = hashLookUp(key);
7071
if (!record.key.empty())
7172
{
7273
cout << "Key (" << key <<") found!" << endl;

0 commit comments

Comments
 (0)