Scrivio Interview library

How this library is made

Where the questions come from, how the answers are written and checked, what has not been checked yet, and what the numbers on the site mean.

Two kinds of questions

The 5,367 questions under Java, Spring Boot, Databases and Architecture were written by Scrivio for practice, from a plan of 201 topics. They are not taken from interviews, and no company is said to have asked them.

The 100 coding questions under Data structures are different. They are adapted from public interview write-ups, and each page says how many write-ups mention the question.

What "Reported 156 times" counts

The coding questions come from a collection of public interview write-ups: posts in which a candidate describes the rounds of an interview and the questions asked. Almost all of the write-ups in the collection were published on GeeksforGeeks. Each question on a data structures page links to a few of them under Example sources.

A count such as "Reported 156 times" is the number of write-ups in that collection in which the question appears. Before counting, wordings of the same question are merged, so "reverse a linked list" and "write code to reverse a singly linked list" are one question. The merging is deliberately cautious: only different wordings of the same task are joined, and two tasks that merely look alike stay apart.

Three things follow from that, and they matter when you read the numbers.

The count is a count inside this collection, not a measure of how often a question is asked across the industry. The collection holds far more write-ups about entry-level and campus interviews than about senior ones, because those are the interviews people write up most.

No employer has confirmed any of it. A write-up is one candidate's memory of an interview.

The wording is Scrivio's. Every question was reworded, and the original text of a write-up is not reproduced here.

The collection holds 2,832 coding questions after merging. This site publishes the 100 counted most often, those reported 15 times or more, because each one has a full written solution; the rest are not shown.

How the answers are written

The answers are researched and drafted with Scrivio, a writing tool the author built that works with an AI model. Each answer follows the same written rules: a short answer first, the idea from the beginning, the failure before the fix, code with each result written beside it, a diagram that can be stepped through, and what to say in the interview.

The data structures solutions follow a second set of rules: work the example by hand before any code, draw the state after each step, then read the Java solution in the order it runs.

What is checked, and what is not

Every answer passes an automated check of its structure and format before it is published: the parts are all there, the lengths are within limits, and the diagrams are well formed.

Every data structures solution was compiled and run on Java 21, and each line the program prints was compared with the comment written beside the statement that prints it. The step-by-step pictures are checked against their format every time the site is built.

In Practice, a coding question lists what its solution assumes: whether the input may be empty, whether values repeat, whether the input may be changed, what comes back when there is no answer. Each of these was tested by running the solution with that input. Where a point cannot be shown by a run, such as how large the input may be in an interview, it was read against the code. The result for every point, with the input used and what came back, is kept with the source of this site. When a solution is edited, its list is held back until it has been read against the new code.

These checks are automatic. They catch a missing part, a program that does not run and a result that does not match, but they are not the same as an expert reading every answer line by line, and the library as a whole has not had that reading. So use an answer as a carefully prepared study note: where a detail matters, confirm it against the official documentation, which most answers link at their end. Each answer lists its own checks under About this answer.

Versions and dates

The data structures solutions are written for Java 21 and use only java.util. The Java and Spring answers name a version wherever the behaviour depends on one, and the versions an answer names are listed at its end.

"Updated" on an answer is the date its text last changed in the source of this site.

What the levels mean

Each written question is marked with the level of experience it is usually asked at. The names are a guide to difficulty; the years are the experience the question was written for.

  • Foundations, up to about 5 years of experience. Uses the language and Spring daily and knows how the common APIs work inside: collections, concurrency utilities, bean lifecycle, transactions, JPA fetching. Debugs production issues in one service and explains trade-offs within it.
  • Intermediate, about 10 years. Designs services and their data, tunes the JVM, pools and queries, makes concurrency correct under load, leads migrations and incident fixes, reviews others' designs and mentors.
  • Advanced, about 15 years. Owns architecture across many services and teams: platform choices, consistency and resilience strategy, fleet-wide JVM and cost decisions, standards and starters, large migrations and their risks.
  • Principal, 20 years and more. Sets long-horizon technical strategy: language and framework bets, build vs buy, governance and security posture, organisation design, risk and cost at company scale; explains why the ecosystem evolved as it did and what that means for decisions now.

If you are new to interviews, start with Foundations, or with one of the three places to start.

Reporting a mistake

Every answer ends with "Report an issue with this answer", which gives a line holding the address of the page. Send it to the author on LinkedIn or GitHub with what you found.