Implement the right way

Cure your AI slopped brain

Smash technical rounds. Get your dream offer.

WhiteBox
Implement a Thread Safe Queue
WhiteBox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
namespace blackbox
{
template <typename T>
class ThreadSafeQueue
{
public:
void push(T value)
{
std::lock_guard<std::mutex> lock(mutex_);
queue_.push(std::move(value));
cond_.notify_one();
}
bool try_pop(T& out)
{
std::lock_guard<std::mutex> lock(mutex_);
if (queue_.empty()) return false;
out = std::move(queue_.front());
queue_.pop();
return true;
}
T wait_and_pop()
{
std::unique_lock<std::mutex> lock(mutex_);
cond_.wait(lock, [this] { return !queue_.empty(); });
T value = std::move(queue_.front());
queue_.pop();
return value;
}
bool empty() const
{
std::lock_guard<std::mutex> lock(mutex_);
return queue_.empty();
}
private:
std::queue<T> queue_;
mutable std::mutex mutex_;
std::condition_variable cond_;
};
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
namespace whitebox
{
template <typename T>
class ThreadSafeQueue
{
public:
void push(T value)
{
std::lock_guard<std::mutex> lock(mutex_);
queue_.push(std::move(value));
cond_.notify_one();
}
bool try_pop(T& out)
{
std::lock_guard<std::mutex> lock(mutex_);
if (queue_.empty()) return false;
out = std::move(queue_.front());
queue_.pop();
return true;
}
T wait_and_pop()
{
std::unique_lock<std::mutex> lock(mutex_);
cond_.wait(lock, [this] { return !queue_.empty(); });
T value = std::move(queue_.front());
queue_.pop();
return value;
}
bool empty() const
{
std::lock_guard<std::mutex> lock(mutex_);
return queue_.empty();
}
private:
std::queue<T> queue_;
mutable std::mutex mutex_;
std::condition_variable cond_;
};
}

Offers at top companies.

HRT
Jane Street
Google
Roblox
Apple
Nvidia
Meta
Amazon
Citadel
Two Sigma
Microsoft
Stripe

Leetcode prep doesn't cut it anymore

AI is changing technical interviews. Adapt to the new meta.

LeetCode
TLE Eliminators
Codeforces
WhiteBox
Transferability Does it help you get a job?
Toy puzzles
Memorization
~ Logical thinking
Production code
Implementation Real systems, not toy problems
None
None
None
Concurrency, OS, Design patterns
Ranking How you stack up
Ranking based on problems solved
None
Elo rating
Performance points + custom domain rating
Strength Analysis Know your weak spots
None
None
None
AI-powered weakness detection
Company Matching Where you'd be a good fit
None
None
None
AI company suggestions
Solutions Quality of explanations
AI slop by randoms
Paywalled
~ Inconsistent
Written with care
Community Who's behind it?
Toxic grind culture
Paid courses
~ Contest-focused
GMs & industry pros
TL;DR

We built the platform we wished existed when we were interviewing. No bullshit, just real skills that transfer to real interviews and careers.

Pricing

Unlock advanced filtering, hundreds of premium questions, video interview guides, and exclusive Discord access.

Free

$0 /month

Level up your interview game with commonly asked interview implementation questions.

Start for Free
  • Non-premium questions
  • Public Discord access
  • Premium questions
  • Access to leaked questions
  • Custom profile badge
  • 24/7 priority support

Lifetime

$249 /once

0.2% of your future salary. Worth.

Get Lifetime
  • Non-premium questions
  • Public Discord access
  • Premium questions
  • Access to leaked questions
  • Custom profile badge
  • 24/7 priority support