python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to find a string with specific letters in gethash javascript function
function getHash( string ) {
let h = 7, letters = "acdefhlmnoprstuw";
for( var i = 0; i < string.length; i++ ) {
h = ( h * 37 + letters.indexOf( string[ i ] ) );
}...
Vkx
Votes: 0
Answers: 1
Why does the last element on my HashSet always have a different HashCode? Contains doesn't work properly
I'm making a simple ortography verification tool in Unity(though this shouldn't be relevant, as my problem is a C# one). The basic logic is:
Import a text file containing a words list in the language...

NicoDorito
Votes: 0
Answers: 0
C# – How to override GetHashCode for List<T> to calculate ETag with T being a record
For a NetCore Web API GET method I need to caluclate the ETag for a returned List<T>. T is the DTO in the form of a record that holds only primitive types.
I wanted to calculate a hash of the li...
M. Koch
Votes: 0
Answers: 1