Sobes.tech

Implement a thread-safe in-memory rate limiter using the Sliding Window or Token Bucket algorithm. Interface: type RateLimiter interface { Allow(key string) bool } Requirements: - Limit: N requests per T seconds for one key - Thread-safe implementation - No third-party libraries - Minimize locking - Discuss: - possible race conditions - GC impact - behavior with many keys Input parameters: NewRateLimiter(limit int, window time.Duration)

Senior
175

What is DNS and how does it work?

Middle
174

What is the difference between a process and a thread at the operating system level?

Middle+
174

Given a string containing characters (){}. Determine whether the input string is balanced in terms of brackets.

Middle
172

Can a pod in Kubernetes contain multiple containers with a shared network namespace? How does a pod differ from a container?

Middle+
172

What is a transaction?

Middle
171

If binary search and search tree operate in the same time, why do both exist and when should each be used?

Middle
171

Can we create an array whose elements are of different types, for example 1, "A" and false?

Middle
171

Tell me about arrays and slices in Go: how are they similar and what are the differences?

Middle
171

Write tests to check boundary cases for the maximum distance problem solution.

Middle
169

How are interfaces structured in Go?

Middle
167

What does the string data type in Go look like?

Senior
166

What is a collision and how to deal with it?

Middle
165

How can you control the number of threads used for goroutine execution?

Middle
165

What happens if the local queue of one [name] is empty, but another [name] has tasks?

Middle+
165

What is deadlock and race condition, how to deal with them?

Middle
164

Write a function that checks if a string is a palindrome. Only alphabetic characters (a-z, A-Z, а-я, А-Я) should be checked, ignoring case.

Middle
164

Do you know the 'man in the middle' attack?

Middle
163

How is the average case evaluated in asymptotic notation?

Middle
163

Is there an open individual entrepreneur or LLC?

Middle+
163
/12