Coding Index

Coding Index

Coding round: 2 questions / 30 minutes.

The highest ROI is arrays, strings, and number logic.

Notes

  • [[Coding_Strategy]]
  • [[Edge_Cases_Checklist]]
  • [[C++_Templates]]
  • [[Python_Templates]]
  • [[Arrays_Problems]]
  • [[Strings_Problems]]
  • [[Number_Logic_Problems]]
  • [[Coding_PYQ_Style_Set]]

What to practice first

  1. Largest/smallest/second largest in array
  2. Frequency count
  3. Reverse array/string
  4. Palindrome
  5. Prime number
  6. Fibonacci
  7. GCD/LCM
  8. Sum/reverse digits
  9. Anagram
  10. Pair sum

Score strategy

One fully accepted question is better than two broken solutions.

Attempt order:

  1. Read both problems.
  2. Solve easier one first.
  3. Test with custom inputs.
  4. Then attempt second.

Common mistake patterns

  • Not handling duplicates
  • Integer division errors
  • Wrong loop boundary
  • No input reading for all test cases
  • Printing extra spaces/newlines
  • Confusing character and integer
  • Not handling n = 0 or n = 1