python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k 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
How to get JSON value without knowing the key
I am faced with a problem, I want to obtain the value from a JSON property but the key is unknown when the request is made. I know I can stringify the JSON response and splice based on the ":&quo...
Johnny
Votes: 0
Answers: 2
Kotlin function return with any one return type from two different data type without specifying Any as a return type?
I want to allow any one of these two return type (ApiResponse || ErrorResponse). But Return Type should not be a object or Any.
fun getAllUser() : Any? {
val flag = true
return if(flag){
...
Yabaze Cool
Votes: 0
Answers: 3
Multiples of 10 in a list
I am currently doing an assignment in my intro level CS class and just need a smidge of help.
They are asking me to write a program that reads a list of integers and determines if it has;
multiples o...
meahghan
Votes: 0
Answers: 3