Skip to content

Explore

Public Mindcombs people chose to share, newest first.

8 matching Mindcombs

Showing 8 on this page.

  • Coding0 upvotes

    REST or GraphQL for a mobile app

    A startup is building one mobile app on top of its own API, with a single frontend team. Should the API be REST or GraphQL? Give one recommendation, the deciding factor, and the situation in which you would choose the other.

    No winner pickedCurated by Mindcomb · prompt from Mindcomb
  • Coding0 upvotes

    Monorepo or separate repos

    A team of eight engineers maintains a web app, a mobile app and a shared API client. Should they use one monorepo or separate repositories? Make one recommendation, name the two biggest risks of your choice and how to reduce them.

    No winner pickedCurated by Mindcomb · prompt from Mindcomb
  • Coding0 upvotes

    Count word frequencies in a file

    Write a short Python script that counts how often each word appears in a text file and prints the ten most common, ignoring case and punctuation.

    No winner pickedCurated by Mindcomb · prompt from Mindcomb
  • Coding0 upvotes

    SQL: top customer per month

    Given tables orders(id, customer_id, amount, created_at) and customers(id, name), write a SQL query that returns, for each month of 2025, the customer who spent the most and how much. Explain any window functions you use.

    No winner pickedCurated by Mindcomb · prompt from Mindcomb
  • Coding0 upvotes

    Explain this regex

    Explain what this regular expression matches, piece by piece, and give two strings it matches and two it rejects: ^(?=.*[A-Z])(?=.*\d)[A-Za-z\d]{8,}$

    No winner pickedCurated by Mindcomb · prompt from Mindcomb
  • Coding0 upvotes

    Spot the race condition

    Two threads call withdraw(80) at the same time on this Python code. What can go wrong, how likely is it, and how would you fix it? Show the fixed code. import time balance = 100 def withdraw(amount): global balance if balance >= amount: time.sleep(0.01) balance -= amount return True return False

    No winner pickedCurated by Mindcomb · prompt from Mindcomb
  • Coding0 upvotes

    Git: undo a pushed commit

    I pushed a commit to a shared branch that I need to undo. Compare git revert and git reset for this situation, and give the exact commands for the safe option.

    No winner pickedCurated by Mindcomb · prompt from Mindcomb
  • Coding0 upvotes

    Why 0.1 + 0.2 is not 0.3

    Why does 0.1 + 0.2 === 0.3 return false in JavaScript, and how should I compare decimal numbers instead?

    No winner pickedCurated by Mindcomb · prompt from Mindcomb