CS CORNER Sunita Rai
2.16K subscribers
601 photos
76 videos
371 files
1.3K links
All study material AND coding related stuffs 🎁

You will find here ❀

Group Link: telegram.me/cscorner
Discussion Link: telegram.me/cscornersunitarai

Follow Insta for more Notes πŸ™‚

Link : https://www.instagram.com/cscornersunitarai
Download Telegram
πŸ“Š *Big O Notation Cheatsheet* πŸš€

Understand how your code performs as data grows!

πŸ”Ή *O(1) – Constant Time*
βœ… Time is the same no matter the input size
πŸ“Œ Example: Accessing an element in a hash table
πŸ’‘ Fastest possible performance

πŸ”Ή *O(log n) – Logarithmic Time*
βœ… Performance grows slowly even with large input
πŸ“Œ Example: Binary search on a sorted array
πŸ’‘ Very efficient for large data sets

πŸ”Ή *O(n) – Linear Time*
βœ… Time grows in direct proportion to input
πŸ“Œ Example: Looping through an array
πŸ’‘ Good for simple iterations

πŸ”Ή *O(n log n) – Linearithmic Time*
βœ… Grows faster than linear but better than quadratic
πŸ“Œ Example: Efficient sorting like Merge Sort, Quick Sort
πŸ’‘ Common in real-world sorting algorithms

πŸ”Ή *O(nΒ²) – Quadratic Time*
❌ Time grows with square of input size
πŸ“Œ Example: Bubble sort, selection sort
πŸ’‘ Avoid for large inputs

πŸ”Ή *O(nΒ³) – Cubic Time*
❌ Time grows with cube of input size
πŸ“Œ Example: Triple nested loops
πŸ’‘ Very slow for large n

πŸ”Ή *O(2ⁿ) – Exponential Time*
⚠️ Time doubles with each input addition
πŸ“Œ Example: Recursive Fibonacci
πŸ’‘ Impractical for even moderate inputs

πŸ”Ή *O(n!) – Factorial Time*
⚠️ Time grows factorially with input
πŸ“Œ Example: Solving Traveling Salesman with brute force
πŸ’‘ Used in brute-force permutations or combinations

🧠 *Tips:*
βœ… Prefer O(1) > O(log n) > O(n) > O(n log n)
❌ Avoid O(n²), O(2ⁿ), O(n!) unless absolutely necessary
βœ… Use the right data structures & algorithms

πŸ’¬ *Tap ❀️ if this helped you!*
❀1
Array Sorting Algorithms
❀1
100+ Practice Questions

❍ C/C++
❍ Python
❍ JavaScript
❍ Java
❍ C#
❍ Golang

➊ Simple Numbers

βž€ Find a digit at a specific place in a number
➁ Find count of digits in a number
βž‚ Find the largest digit
βžƒ Find the 2nd largest digit
βž„ Find the kth largest digit
βž… Find the smallest digit
βž† Find the 2nd smallest digit
βž‡ Find the kth smallest digit
➈ Find generic root (sum of all digits) of a number
βž‰ Reverse the digits in a number
βž€βž€ Rotate the digits in a number
βž€βž Is the number a palindrome?
βž€βž‚ Find sum of 'n' numbers
βž€βžƒ Check if a number is perfect square
βž€βž„ Find a number in an AP sequence
βž€βž… Find a number in a GP sequence
βž€βž† Find a number in fibonacci sequence
βž€βž‡ Check number divisibility by 2, 3, 5, 9
βž€βžˆ Check if a number is primary or not
20. Given a number, print all primes smaller than it
βžβž€ Check if a number is circular prime or not
➁➁ Find all prime factors of a number
βžβž‚ Find the GCD of 2 numbers
βžβžƒ Find the LCM of 2 numbers
βžβž„ Find the factorial of a number
βžβž… Find the exponentiation of a number

βž‹ Unit Conversion

βž€ Number Base (Binary, Octal, Hexadecimal, Decimal)
➁ Weight (gram, kg, pound)
βž‚ Height (cm, m, inch, feet)
βžƒ Temperature (centigrade, fahrenhite)
βž„ Distance (km, mile)
βž… Area (mΒ², kmΒ², acre)
βž† Volume (ltr, gallon)
βž‡ Time (sec, min, hour)
➈ Currency

➌ Calculator

βž€ Loan EMI Calculator
➁ Fixed Deposit Returns Calculator
βž‚ Interest Calculator
βžƒ BMI Calculator
βž„ Item Price (considering tax, discount, shipping)
βž… Tip Calculator

➍ Geometry

βž€ Find distance between 2 points
➁ Given 2 sides of a right angle triangle, find the 3rd
βž‚ Find 3rd angle of a triangle when 2 are given
βžƒ Area of a triangle when 3 sides are given
βž„ Area of a right angle triangle
βž… Perimeter of a Square
βž† Area of a Square
βž‡ Perimeter of a Rectangle
➈ Area of a Rectangle
βž‰ Circumference of a Circle
βž€βž€ Area of a Circle
βž€βž Circumference of a Semi-Circle
βž€βž‚ Area of a Semi-Circle
βž€βžƒ Area of a Ring
βž€βž„ Circumference of an Ellipse
βž€βž… Area of an Ellipse
βž€βž† Suface Area of a Sphere
βž€βž‡ Volume of a Sphere
βž€βžˆ Surface Area of a Hemisphere
20. Volume of a Hemisphere
βžβž€ Surface area of a Cube
➁➁ Volume of a Cube
βžβž‚ Surface area of a Cylinder
βžβžƒ Volume of a Cylinder

➎ Vector

βž€ Find Scalar Multiplication of a vector
➁ Find addition/subtraction of vectors
βž‚ Find magnitude of a vector
βžƒ Find an unit vector along a given vector
βž„ Find dot product of 2 vectors
βž… Find cross product of 2 vectors
βž† Check if 2 vectors are orthogonal

➏ Matrix

βž€ Find the determinant of a matrix
➁ Find Scalar Multiplication of a matrix
βž‚ Find addition/subtraction of matrices
βžƒ Find the transpose of a matrix
βž„ Find if 2 matrices are orthogonal
βž… Find inverse of a 2x2 and 3x3 matrix

➐ Set

βž€ Find Union of 2 sets
➁ Find Intersection of 2 sets
βž‚ Find the Difference of 2 sets
βžƒ Find the Symmetric Difference of 2 sets
βž„ Find if a set is subset/superset of another set
βž… Find if 2 sets are disjoints

βž‘ Special Numbers

βž€ Strong Number
➁ Perfect Number
βž‚ Armstrong Number
βžƒ Harshad Number
βž„ Kaprekar Number
βž… Lychrel Number
βž† Narcissistic Decimal Number
βž‡ Lucus Number
➈ Catalan Number
βž‰ Duck Number
βž€βž€ Ugly Number
βž€βž Abundant Number
βž€βž‚ Deficient Number
βž€βžƒ Automorphic Number
βž€βž„ Magic Number
βž€βž… Friendly Pair Numbers
βž€βž† Neon Number
βž€βž‡ Spy Number
βž€βžˆ Happy Number
20. Sunny Number
βžβž€ Disarium Number
➁➁ Pronic Number
βžβž‚ Trimorphic Number
βžβžƒ Evil Number
βžβž„ Amicable Pairs
πŸ‘Ž1
βœ… *Beginner’s Roadmap to Learn DSA* πŸ§ πŸ’»

1️⃣ *Foundations* – Understand programming basics & core math
2️⃣ *Data Structures* – Arrays, Linked Lists, Stacks, Queues
3️⃣ *Searching & Sorting* – Binary Search, Quick Sort, Merge Sort
4️⃣ *Trees & Graphs* – Binary Trees, BFS, DFS, Graph theory
5️⃣ *Recursion* – Learn base & recursive cases, backtracking
6️⃣ *Advanced Structures* – Heaps, Hash Maps, Tries
7️⃣ *Algorithms* – Greedy, Divide & Conquer, DP
8️⃣ *Advanced Topics* – String, Bit Manipulation, Sliding Window
9️⃣ *Problem Solving* – Daily practice on LeetCode, Codeforces, etc.
πŸ”Ÿ *Projects + GitHub* – Build & share to showcase your DSA skills


πŸ’¬ Tap ❀️ for more!
❀1
Google Certification Courses Links:

1. Google Digital Marketing & E-Commerce - https://bit.ly/4cktVvy
2. Google AI Essential Course - https://bit.ly/4en8Thn
3. Google Project Management - https://bit.ly/3VEh6qm
4. Google Data Analytics - https://bit.ly/45oxVJ2
5. Google IT Support - https://bit.ly/3Rpx19k
6. Google Cybersecurity - https://bit.ly/3VC9HYt
7. Google User Experience (UX) Design - https://bit.ly/4ezRAtV
Sql Complete Notes πŸ“˜

Do react if you want more such notes βœ