Coding interview preparation
5.82K subscribers
398 photos
70 files
164 links
Download Telegram
image_2025-01-31_16-39-23.png
143.1 KB
Common Data Structure Operations and
Array Sorting Algorithms

It could be useful to have it as a cheat sheet
๐Ÿ‘3
SC15.png
195.6 KB
SQL EXECUTION ORDER

SQL Doesnโ€™t Run the Way You Think It Does!

Most people assume SQL runs top to bottomโ€”
but in reality, the database follows a completely different process.

Hereโ€™s what actually happens when you hit Run:

๐Ÿ”น FROM & JOIN โ€“ First, SQL figures out where to pull the data from.
๐Ÿ”น WHERE โ€“ Then, it filters out rows that donโ€™t match your conditions.
๐Ÿ”น GROUP BY โ€“ If needed, it groups the remaining rows together.
๐Ÿ”น HAVING โ€“ Now, it filters those groups (not individual rows).
๐Ÿ”น SELECT โ€“ Finally, it picks the columns you asked for.
๐Ÿ”น ORDER BY โ€“ It sorts the result.
๐Ÿ”น LIMIT โ€“ At the very end, it restricts the output.

Why does this matter?
โคท You canโ€™t use column aliases in WHERE
because SELECT runs later.
โคท Filtering after grouping (HAVING)
is less efficient than filtering before (WHERE).
โคท Understanding this helps you write faster, better queries.

Most analysts assume SQL reads queries like English.
โœ… But databases have their own logicโ€”and mastering it makes
you a 10x better analyst!
๐Ÿ‘4
Python Interview Questions
๐Ÿ‘3โค1
What was the original name of JavaScript when it discovered?
Anonymous Quiz
21%
LiveScript
28%
EScript
40%
JScript
12%
Mocha
โค1
JOB INTERVIEW CHEAT SHEET
๐Ÿ‘2๐Ÿ”ฅ1
What is JSX?

JSX (JavaScript XML) is a special syntax in React that lets you write HTML-like code inside JavaScript. It makes your code more readable and intuitive because you can describe the UI directly in your JavaScript code.

Why is JSX useful?

โœ… Easier to write & read โ€“ Looks like HTML but works inside JavaScript.
โœ… More powerful than HTML โ€“ You can use variables, functions, and logic directly inside JSX.
โœ… Optimized by React โ€“ JSX gets converted into super-efficient JavaScript calls behind the scenes.
Example of JSX in action:

const name = "Borislav";  
const element = <h1>Hello, {name}!</h1>;


๐Ÿš€ Here, {name} is a JavaScript variable inside JSX!

JSX is not HTML โ€“ it's just syntactic sugar for React.createElement(). You must wrap elements properly (e.g., use one parent tag).

Want to build awesome React apps? JSX is the way to go! ๐Ÿ”ฅ
๐Ÿ‘1
API Protocols
๐Ÿ‘3
What do you understand by Virtual DOM?

Think of the Virtual DOM like a draft version of your web page. Instead of changing the actual page (which is slow), React updates this lightweight copy first. Then, it smartly compares the draft with the real page and updates only the necessary parts kind of like editing a document without retyping the whole thing.

Result? Faster updates, smoother performance, and a better user experience! ๐Ÿš€
๐Ÿ‘2
In C, if we pass an array as an argument to a function, what actually get passed?
Anonymous Quiz
19%
Address of the last element of array
46%
Base address of the array
21%
Value of elements in array
14%
First element of the array