All Questions
Tagged with interview or interview-questions 
        
            
                964 questions
            
            
            
                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
        
        
            
                224
            
            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
        
        
            
                113
            
            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
        
        
            
                251
            
            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
        
        
            
                675
            
            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
        
        
            
                239
            
            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().
...
                
            
       
        
            
                2
            
            votes
        
        
            
                2
            
            answers
        
        
            
                168
            
            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
        
        
            
                544
            
            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
        
        
            
                296
            
            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
        
        
            
                215
            
            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
        
        
            
                285
            
            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
        
        
            
                139
            
            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 ...