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;


Habilidades: Programação C++ , Programação C, Java, Arquitetura de software, Programação C#

Acerca do Empregador:
( 7 comentários ) GUILDERLAND, United States

ID do Projeto: #22784714

Concedido a:


⭐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 Mais

$23 USD em 7 dias
(7 Comentários)

6 freelancers estão ofertando em média $22 para esse trabalho


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] Mais

$20 USD in 7 dias
(13 Comentários)

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++ Mais

$20 USD em 1 dia
(2 Comentários)

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 em 1 dia
(2 Comentários)

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 Mais

$23 USD in 7 dias
(1 Comentário)

⭐⭐⭐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] Mais

$23 USD em 1 dia
(0 Comentários)