Coding Interview Preparation
Відкрити в Telegram
Coding interview preparation for software engineers Interview questions, DSA, clean solutions. Join 👉 https://rebrand.ly/bigdatachannels Buy ads: https://telega.io/c/coding_interview_preparation DMCA: @disclosure_bds Contact: @mldatascientist
Показати більше5 901
Підписники
+424 години
+147 днів
+530 день
Архів дописів
How React's ES6 syntax is different from ES5 syntax?
1. require vs. Import
// ES5 var React = require('react'); // ES6 import React from 'react';
Prep_fuels_⛽️_confidence_Know_strengths,_Work_on_weakness!.pdf0.93 KB
3. Once the calculations are completed, the real DOM updated with only those things which are changed.
2. Now, the difference between the previous DOM representation and the new DOM is calculated.
Virtual DOM works in three steps:
1. Whenever any data changes in the React App, the entire UI is re-rendered in Virtual DOM representation.
In C, if we pass an array as an argument to a function, what actually get passed?
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! 🚀
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! 🔥What was the original name of JavaScript when it discovered?
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!
Common Data Structure Operations and
Array Sorting Algorithms
It could be useful to have it as a cheat sheet
