CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 14:39:53 GMT
content-type: text/html; charset=utf-8
cf-ray: 9633b0a80c9cc469-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=588cdcf0-69cf-495b-9720-32ca3395a88a; expires=Wed, 22 Jul 2026 14:39:53 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-frame-options: SAMEORIGIN
x-request-guid: 1fb824c0-9a90-4cd1-a5b8-4d62eeecc531
x-worker-origin-response-time: 278000000
x-dns-prefetch-control: off
set-cookie: prov=588cdcf0-69cf-495b-9720-32ca3395a88a; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=KSkrhPS2D1sSj5F3s6QVZmsrgHChkjlpGFXltuZYzyM-1753195193-1.0.1.1-U4kRnPZIj1cOk37IQTQRx1mEMbfw6buPfURDN3w1LG2_dYpjdn8OdMPY7VEcLGR7KYI5NwRc1WeI_t1KS49fRouCzVkdsRzFQJQpAMRFkps; path=/; expires=Tue, 22-Jul-25 15:09:53 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=lgL7o.viXN_9iCLBaE6HtiFEhEyBBmzcWoNz4Zxowd8-1753195193909-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'interview-question' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsAll Questions
Tagged with interview-question or interview-questions
963 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
10
votes
3
answers
2k
views
C++ std::optional implementation for tech interview
I'm preparing for entry-level C++ developer interview and decided to implement some of std:: members. Here's my implementation of std::optional. I would be grateful ...
0
votes
3
answers
180
views
Java exceptions that show the message when converted to String
I’m working with custom exceptions in Java for stack operations. However, I’m unsure if the exception handling is being handled properly, especially in terms of how exceptions are thrown and caught. ...
4
votes
1
answer
101
views
File list and monitor
I recently was given a take home assignment for a job interview. The task was specified like so:
...
5
votes
2
answers
217
views
Tetris logic for interview
I would appreciate feedback on the code below which I created during an one-hour live interview session. In particular, while the interviewer pretty much said nothing during the interview, their ...
5
votes
2
answers
638
views
Thread-safe write-efficient register() method for a Load balancer
The code below was written for an interview question of designing a load balancer with only a register() method.
...
13
votes
8
answers
2k
views
Counting Occurrences of a Specific 3-Bit Pattern in a Byte Array
I was asked this problem in an interview, and this is the solution I came up with. I was told it's not the most efficient solution, but I can't think of any other solution. This is the problem.
...
4
votes
4
answers
206
views
Reversing string in PHP
I got this task to evaluate my knowledges in PHP.
I was asked to avoid using functions like strrev() or array_reverse().
...
Stacanovist
2
votes
2
answers
145
views
A thread-safe performant Money Transfer API in Java
This is a popular interview question. It is meant to be done within 30 minutes. The task is to implement a thread-safe performant Bank Account API that allows to transfer, deposit, withdraw and check ...
7
votes
2
answers
1k
views
A thread-safe performant URL Shortener in Java
This is a popular interview question. It is meant to be done within 45 minutes. The task is to implement a thread-safe performant in-memory URL Shortener.
My implementation is based on two maps that ...
5
votes
1
answer
535
views
Create an address self-complete bar
I recently received the following code challenge in connection with a job interview. After submitting, I was rejected. I want to know what (if anything) I could have done better here.
Task
Your task ...
5
votes
1
answer
261
views
String character changes (case insensitive) - Go
I saw this question on one of the socials, presented as an Apple interview question. I have had to paraphrase as it was not given in text format. (Credit: Instagram @greghogg5)
Given a string (S) ...
4
votes
1
answer
193
views
Last Stone Weight Problem in Haskell using list `insert`
Background
Saw this problem on TheJobOverflow which seems to be a LeetCode question.
It bothered me that the "challenge" of this problem was to recognize the need for a specific data-type (...
11
votes
4
answers
2k
views
Simple Key Value Database using C
I was recently doing an assignment for a job interview, which asked to create a simple key value database with 4 command line operations:
create key value: Adds a key value pair/updates an existing ...
3
votes
3
answers
246
views
Extracting records from a 2D List of strings
Recently I had an interview question about extracting records that matched certain criteria from a 2D List of strings. The premise was a CSV file was parsed into a ...
2
votes
1
answer
127
views
Simple Curry function
This is a interview practice question from BFE.dev.
Currying is a useful technique used in JavaScript applications.
Please implement a curry() function, which ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
java × 357
algorithm × 168
python × 150
c# × 142
strings × 102
javascript × 96
c++ × 95
performance × 75
object-oriented × 55
array × 50
complexity × 49
beginner × 46
linked-list × 44
python-3.x × 38
c × 37
unit-testing × 33
tree × 32
recursion × 24
matrix × 21
stack × 19
multithreading × 18
comparative-review × 18
graph × 18
sorting × 17
more related tags
Hot Network Questions
- Formation of a Hot Spring Mountain
- Drug that makes the mind a million times faster
- How can I grow kelp or seaweed at home in a small container?
- Will a restless MCU survive long enough?
- I wonder whether there exists a book of "Formal power series" and "Formal infinite products"?
- Can I mount my PC with a desktop mount underneath a particle board Ikea Karlby Walnut top?
- Must hospitals care for unidentifiable individuals indefinitely?
- How to make ratchet-style hub quieter
- How do I 'Inset' across multiple faces?
- A power of 10 that is the sum of consecutive powers of 2?
- Is a diet of one third Tuna ok for cat
- When should the DM announce an opponent's death?
- What does this "lightbulb-ish" symbol mean in figure 1 of the Diffie Hellmann paper?
- Compatible JPEG format for SmartMedia direct printing on Olympus P-400 printer?
- Books or References on the Theory Behind Proof Assistants?
- Output shortest string containing all input strings
- How can native speakers distinguish between lenis and fortis finals such as /tʃ/ and /dʒ/ as in /ɛtʃ/ and /ɛdʒ/?
- Where exactly in Gauss's Werke did he prove Codazzi-Mainardi equations?
- TeX development in C instead of Pascal
- Can heat be converted to light (possibly via infra-red)? For an underground setting
- How can I keep a new window stool level?
- TV episode where a disfigured human exchanges places with a normal-looking human from another planet
- What Does It Mean to ‘Continue in My Word’ in John 8:31?
- A word that describes some people