Skip to content
ReadMe Daily

Search articles, problems, patterns and every cheat sheet topic.

Coding concepts, explained from the basics

Learn how data structures and algorithms work, practise the patterns behind most interview problems, revise JavaScript, HTML and CSS with one-page cheat sheets, and read practical guides to keeping a website secure.

Start hereSee the roadmapBrowse problems

Patterns

All patterns
  • Hashing

    Remember what you have seen in a map or set, so each later check is a lookup instead of a loop.

  • Two Pointers

    Move two indexes through a sequence, usually from both ends towards the middle, to avoid a nested loop.

  • Sliding Window

    Keep a running result for a contiguous range and update it as the range moves, instead of recalculating from scratch.

  • Prefix Sums

    Store running totals once, then get the sum of any range with a single subtraction.

  • Binary Search

    Halve the search range at every step by comparing against the middle of sorted data.

  • Binary Search on the Answer

    Guess the answer, test the guess with a quick yes-or-no check, and halve the range of possible answers.

  • Peak Finding

    Find the top of data that rises then falls by asking which slope the middle item is on.

  • Matrix Search

    Use the order in a sorted grid to throw away a whole row or column with each comparison.

  • Rotated Sorted Arrays

    A rotated sorted array has at most one drop, so one comparison with the right end still lets you throw away half of it.

  • Stack and Monotonic Stack

    Keep unfinished items on a stack and resolve the most recent one first, in O(n).

  • Linked List Pointer Techniques

    Solve linked list problems in place with fast and slow pointers, link reversal and a dummy head.

Cheat sheets

All cheat sheets
  • JavaScript Cheat Sheet

    Variables, strings, arrays, objects, functions, async code and the DOM as short examples.

  • HTML Cheat Sheet

    Page skeleton, text, links, images, lists, tables, forms and layout tags as short examples.

  • CSS Cheat Sheet

    Selectors, the box model, units, flexbox, grid, positioning and responsive design as short examples.

  • Claude Cheat Sheet

    Models, prompting, the Messages API, tools, caching, errors and Claude Code as short examples.

  • Salesforce Cheat Sheet

    The data model, SOQL, Apex, triggers, limits, tests, LWC, security and the sf CLI as short examples.

  • ChatGPT Cheat Sheet

    Models, prompting, the app's features and the OpenAI API with tools, caching and errors as short examples.

  • Python Cheat Sheet

    Variables, strings, lists, dictionaries, loops, functions, classes and files as short examples.

  • React Cheat Sheet

    Components, JSX, props, state, effects, context, hooks, performance and React 19 as short examples.

  • DSA Algorithms Cheat Sheet

    Big O, searching, sorting, array techniques, recursion, graphs and dynamic programming as short code.

  • Choosing a Database Cheat Sheet

    Every popular database by family, what each is for and what it gives you, with a short example of each.

  • MySQL Cheat Sheet

    Types, SELECT, joins, grouping, indexes, transactions, JSON, users and the CLI as short examples.

  • MongoDB Cheat Sheet

    Documents, CRUD, operators, indexes, aggregation, transactions and the Node.js driver as short examples.

  • RAG Cheat Sheet

    Chunking, embeddings, vector indexes, hybrid search, reranking, prompt layout and evaluation as short notes.

Latest articles

All articles
  • AI Engineering

    The AI-Native SDLC, Explained With Examples

    What an AI-native software development lifecycle looks like, walked through one small feature from brief to production, with the failure modes to watch for.

    · 12 min read

  • Web Security

    Access Token Best Practices: Storage, Expiry and Rotation

    How to handle access tokens safely: where to store them in the browser, how long they should live, refresh token rotation, validation, revocation and logging.

    · 9 min read

  • Web Security

    Access Tokens and Refresh Tokens Explained

    What access tokens and refresh tokens are, how the two work together, how JWTs differ from opaque tokens, and what a server must check before trusting one.

    · 8 min read

  • Web Security

    How to Secure a Website: 12 Practical Steps

    A practical website security checklist: HTTPS, safe password storage, input validation, XSS and CSRF defences, security headers, access control and secrets.

    · 10 min read

Practice problems

All problems
ProblemDifficultyPatternTimeSpaceRead
Arranging CoinseasyBinary Search on the AnswerO(log n)O(1)Medium read: 7 min
Binary SearcheasyBinary SearchO(log n)O(1)Short read: 4 min
3SummediumTwo PointersO(n²)O(n)Medium read: 6 min
Daily TemperaturesmediumStack and Monotonic StackO(n)O(n)Short read: 5 min
Find in Mountain ArrayhardPeak FindingO(log n)O(1)Long read: 10 min
Find Minimum in Rotated Sorted Array IIhardRotated Sorted ArraysO(log n) typical, O(n) worst caseO(1)Long read: 9 min