Skip to content

Instantly share code, notes, and snippets.

View Sahil-4's full-sized avatar

Sahil Sahil-4

View GitHub Profile

OOPS Interview Preparation

  1. What is OOPS and why is it important? OOPS = Object-Oriented Programming System. Organizes code around objects instead of just functions. Increases modularity, maintainability, and reusability. Example: In an e-commerce app → Product, Cart, and User are objects, each with its own data + behavior.

  2. Four Pillars of OOPS

@Sahil-4
Sahil-4 / Spellchecker.cpp
Created September 14, 2025 07:11
Spell checker engine
class TrieNode {
private:
int T = 53;
bool word;
int prefix;
vector<TrieNode*> childs;
int getIndex(char ch) {