We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Data Structures
- Stacks
- Waiter
- Discussions
Waiter
Waiter
Sort by
recency
|
364 Discussions
|
Please Login in order to post a comment
def generate_sieve(): constraint = pow(10, 4) boolean_sieve = [True] * (constraint + 1) boolean_sieve[0] = boolean_sieve[1] = False sieve = []
def waiter(number, q): answers = [] sieve = generate_sieve() A = number
Java solution with sieve of eratosthenes for primes
java solution
class Result {
public static List waiter(List number, int q) { // Write your code here
}
Python