Đã hoàn thành

Hashing function

Develop a cpp program to find how many different hash values can generated for all N-char strings, N < 5. The hash function is given below.

A N-char string has only N a-z and A-Z characters. For instance, the set of N=1 includes all strings from A to z (A, B, C, ... , X, Y, Z, a, b, c, ..., x, y, z); N=2 has AA to zz, N=3, AAA to zzz.

Expected outcome of the your program is the following:

N=1, 52 strings map to ?? different hash values

N=2, ?? strings map to ?? different hash values

N=3, ?? strings map to ?? different hash values

N=4, ?? strings map to ?? different hash values

/--- Hashing Function--- /

int hash(string key)


int hash = 0;

for(int i = 0; i < [login to view URL](); i++)

hash = (hash * 7) + key[i];

return hash;


Kĩ năng: Lập trình C++, Lập trình C, Java, Kiến trúc phần mềm, Lập trình C#

Về Bên Thuê:
( 7 nhận xét ) GUILDERLAND, United States

ID dự án: #22784714

Được trao cho:


⭐How are you ?⭐ I have a detail look to your project, and I'm sure that I will complete your project surely. I am good at c++ programming. I already have a experience in hashing. I am sure high quality. Please let's di Thêm

$23 USD trong 7 ngày
(7 Đánh Giá)

6 freelancer đang chào giá trung bình $22 cho công việc này


Hello, i'm interested in your project. Please send me a message so that we can discuss more. I prefer to submit my detailed proposal after our discussion. Note: + We are flexible with changes. + [login to view URL] Thêm

$20 USD trong 7 ngày
(13 Nhận xét)

Hello I have read your project description and I am interested in the project. As you can see my profile, I am a full-time developer and have just completed many projects. Specially, I have wide experience in C/C++ Thêm

$20 USD trong 1 ngày
(2 Nhận xét)

Hello. How are you. I'm software engineer and algorithm expert. I have many experiences in c, c++, c#, java, python, node.js. I can complete your project successfully. Thanks.

$25 USD trong 1 ngày
(2 Nhận xét)

Hello. I am a expert in C++ with full experiences for 6+ years. I can handle your requirements using C++ application. If you hire me, I can finish it as you want. I am always ready to work for you and can I start immed Thêm

$23 USD trong 7 ngày
(1 Nhận xét)

⭐⭐⭐Hashing function⭐⭐⭐ I have read your description in detail and got a convinced I can complete this work with my heavy experiences in Hashing function My GitHub url and profile are here. [login to view URL] Thêm

$23 USD trong 1 ngày
(0 Nhận xét)