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
- Largest/smallest/second largest in array
- Frequency count
- Reverse array/string
- Palindrome
- Prime number
- Fibonacci
- GCD/LCM
- Sum/reverse digits
- Anagram
- Pair sum
Score strategy
One fully accepted question is better than two broken solutions.
Attempt order:
- Read both problems.
- Solve easier one first.
- Test with custom inputs.
- 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 = 0orn = 1