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)
What happen in the background: Reverse order without adding temporary variable
I'm trying to solve reverse order the string, then I'm coming with 2 solution that almost similar, but the result quite difference (I thought result should be same). I understand what happen in first_...
mhanifmm96
Votes: 0
Answers: 1
Hashmap (O(1)) supporting joker/match-all keys
The title is not so clear, because I cannot put my problem in a sentence (If you have a better title for this question, please suggest). I'll try to clarify my requirement with an example:
Suppose I h...
Ahmad
Votes: 0
Answers: 3
Average time complexity of open addressing
From CLRS book analysis:
11.6: Given an open-address hash table with load factor α=n/m<1 the expected number of probes in an unsuccessful search is at most 1/1-α assuming uniform hashing.
11.7: Ins...
Spyromancer
Votes: 0
Answers: 1
What is the difference between the following seemingly same two python functions?
I'm new to data structures and algorithms, so I was kind of confused when I was writing a function to find a pair of numbers from two arrays (one from each array) that the absolute value of difference...
Hao Li
Votes: 0
Answers: 1