How To Write Efficient Algorithms?

0 16
Avatar for HabibArafat123
3 years ago

🔳 🔳 - Improving time complexity - Improving space complexity The lesser time your algorithm takes to give result for bigger values the lesser is the time complexity and the same thing applies to space complexity too. - Use efficient data structure according to problem statement - Make use of hash tables - Make use of memorization techniques - Use dynamic programming - Avoid recursion in general - Avoid repetitive calculation of results for sub-problems, rather store them once calculated - Use bitwise operations - Operate on bit level rather than byte level to save space wherever possible

Sponsors of HabibArafat123
empty
empty
empty

1
$ 0.00
Avatar for HabibArafat123
3 years ago

Comments