Software Engineer interview questions and answers
Software engineer interviews usually mix a coding round, a system design round for mid-level and senior roles, and a conversation about past projects. Interviewers care as much about how you reason out loud as about the final code.
About you and the role
Walk me through a project you are proud of.
Sample answer: Pick one project and tell it as a short story: the problem and who had it, your exact part, the main technical decision you made and why, and a result with a number if you have one (faster pages, fewer errors, users served). End with one thing you would do differently. Avoid listing every tool; depth beats breadth.
Skills and knowledge
What is the difference between a process and a thread?
Sample answer: A process has its own memory space and resources; a thread runs inside a process and shares that memory with the other threads. Threads are cheaper to create and can talk through shared memory, but that sharing is why you need locks or other care to avoid race conditions. Processes are better isolated, so a crash in one does not take down the others.
How would you find duplicates in a very large list of numbers?
Sample answer: If it fits in memory, put each item into a hash set and report any item already there: O(n) time, O(n) memory. If memory is tight, sort in place and compare neighbours: O(n log n) time, little extra memory. If the data is too big for one machine, split it by hash into files or partitions so equal values land together, then check each part on its own.
Explain Big O notation with an example.
Sample answer: Big O describes how the work grows as the input grows, ignoring constants. Looking up a key in a hash map is O(1) on average, scanning a list is O(n), sorting is O(n log n) and comparing every pair is O(n²). It matters because an O(n²) solution that is fine for 1,000 items can be far too slow at 1,000,000.
What happens when you type a URL into a browser and press Enter?
Sample answer: The browser checks its cache, then resolves the domain to an IP address through DNS. It opens a TCP connection (and a TLS handshake for HTTPS), sends an HTTP request, and the server or a CDN returns a response. The browser parses the HTML, fetches CSS, JavaScript and images, builds the page layout and paints it. Mentioning caching and CDNs shows real-world awareness.
How do you decide between SQL and NoSQL databases?
Sample answer: Choose a relational database when data has clear relationships, you need joins and transactions, and consistency matters, as with orders and payments. Choose a document or key-value store when the shape of the data changes often, you mostly read by one key, or you need very high write volume across many machines. Many teams use both, each for what it does best.
How would you design a URL shortener?
Sample answer: Clarify scale first, for example 100 million links and far more reads than writes. Generate a short unique code (a counter encoded in base 62, or a random code checked for collisions), store code to URL in a key-value store, and redirect with a 301 or 302. Put a cache in front for hot links, add rate limits against abuse, and record clicks asynchronously so redirects stay fast.
What is the difference between a stack and a queue?
Sample answer: A stack is last in, first out: you push and pop from the same end, like a pile of plates. It is used for undo, function calls and depth-first search. A queue is first in, first out: you add at the back and remove from the front, like a ticket line. It is used for scheduling jobs and breadth-first search.
How would you reverse a linked list?
Sample answer: Walk the list once with three pointers: previous (starting empty), current and next. For each node, save next, point current back at previous, then move previous and current one step forward. When current is empty, previous is the new head. It takes O(n) time and O(1) extra memory.
What are SOLID principles?
Sample answer: Five design guidelines: Single responsibility (a class has one reason to change), Open/closed (extend behaviour without editing working code), Liskov substitution (subclasses can stand in for their parent), Interface segregation (small, focused interfaces) and Dependency inversion (depend on abstractions, not concrete classes). They make code easier to change and test.
How do you write code that is easy to test?
Sample answer: Keep functions small with clear inputs and outputs, separate logic from input and output such as databases and network calls, pass dependencies in rather than creating them inside, and avoid hidden global state. Then unit tests can run fast with simple fakes in place of real services.
Past experience
Tell me about a bug that took you a long time to fix.
Sample answer: Use the STAR shape: Situation, Task, Action, Result. Describe the symptom, how you narrowed it down (logs, reproducing it, bisecting commits), the real cause, and the fix. Then add what you changed so it would not happen again, such as a test, an alert or a code review checklist. That last step is what interviewers remember.
How do you handle disagreement about a technical approach in code review?
Sample answer: Show that you separate ego from code. Ask questions to understand the other view, back your opinion with facts like benchmarks, docs or past incidents, and suggest a small experiment when it is unclear. If the team decides against you, commit to the decision. Agreeing on style rules in a linter avoids many of these debates.
Tell me about a time you learned a new technology quickly.
Sample answer: Name the technology and why you needed it, how you learned (official docs, a small prototype, asking an expert), how long it took to be productive and what you delivered with it. Interviewers want proof you can pick things up because tools change every few years.
What would you do?
Production is down right after your deploy. What do you do?
Sample answer: First restore service: roll back or turn off the feature flag rather than debugging live. Tell the team and anyone affected what is happening. Once stable, find the cause from logs and metrics, fix it with a test that would have caught it, and write a short blameless review of what happened and what process change prevents a repeat.
You are given a large, old codebase with no tests and asked to add a feature. How do you start?
Sample answer: Read the code around the change and run the app to see current behaviour. Add a few characterisation tests that lock in what it does today, then make the smallest change needed, refactoring only what you touch. Ship in small steps and ask people who know the history before removing anything that looks unused.
Open Software Engineer jobs
Remote · Brazil
Desenvolvedor de Software Junior
Ho Chi Minh, Vietnam
[BGSV] 30 Fresher Embedded Software Engineers (C/C++)
Remote · Worldwide
Lead Software Engineer - Alti (AI)
Remote · United Kingdom
Senior Sales Engineer
Remote · Bulgaria
Sr. Software Engineer II- Mobile (Remote Eligible in Bulgaria)
Remote · Germany