CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 09:12:10 GMT
content-type: text/html; charset=utf-8
cf-ray: 965b03745edb8087-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=e7afc82e-5c08-4145-a82d-e76f7d96891e; expires=Mon, 27 Jul 2026 09:12:09 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-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 15677ae0-f6e2-4820-9293-6d66ca0c82af
x-worker-origin-response-time: 634000000
x-dns-prefetch-control: off
set-cookie: prov=e7afc82e-5c08-4145-a82d-e76f7d96891e; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=2SsrQHt4W4D9HTQdSk36BTJCUk6535N_RxTU4_LH3qU-1753607530-1.0.1.1-rQoech8rxNhstE0CxV2m27ZzyMdoKdfE9C2n9DaM_0ImVPHP41dlibFUZLN.jkcPMtIubMaYsKF.DJc9pvuPsD4s1LSw4UjnqrHQBtgZYi8; path=/; expires=Sun, 27-Jul-25 09:42:10 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=FAjDhHZ0l9J7hyBoQCQDDCKlxvMYbsnq7WhH0ZCb10w-1753607530304-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'interview-questions' 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 TeamsQuestions tagged [interview-questions]
This tag is for questions that came up in an interview.
964 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
219
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
641
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
194
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
248
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 × 358
algorithm × 168
python × 150
c# × 142
strings × 102
javascript × 96
c++ × 95
performance × 69
object-oriented × 55
array × 50
complexity × 49
beginner × 46
linked-list × 44
python-3.x × 38
c × 37
tree × 32
unit-testing × 32
recursion × 24
matrix × 21
stack × 19
comparative-review × 18
graph × 18
multithreading × 18
more related tags
Hot Network Questions
- What is the best interpretation of Psalm 6:4? Does "Turn" or "Return" capture the intended meaning?
- Are you required to protect trade secrets revealed to you even if you didn't sign an NDA?
- “Unclear step in a math book for entertainment”
- Is this a violation of open source?
- Moving multiplying cells away
- how is it possible for a player to have crossed 2400 and secure 3+ IM norms to stay FM
- Easy ways to draw vector diagrams in TikZ?
- How much of a really big a spaceship could a nuke take out?
- When did the OEIS get even better?
- What is the weight of holy water?
- How to extend an MDF shelf?
- Is it possible to use the PC power button to pre-select the OS in rEFInd UEFI dual boot setup?
- A national poll of 1000 French returns 25% of "Yes". Is it enough to say that it's quite impossible locally to be 0%, if we don't know the variance?
- I don't understand Photos Library.photoslibrary
- When was the last time all alive humans stayed on earth?
- How to navigate in the Universe's Heat Death
- Story that taught cryptography in the form of a manga
- What Isp can be gotten from a napthalene (mothball) hot gas thruster? Did it work in space?
- How do Japanese people understand the reading of a single kanji with multiple readings in their everyday life?
- In Jurassic Park, is the lysine dependency intentionally fake (in-universe)?
- Why are police personnel of all ranks called officers?
- What is the citation for Augustine's "consensus, non concubitus..."
- Does SZNUD3160 really eliminate the need for diode?
- Not your ordinary affix riddle