Mathematics does not include algorithms. Algorithms always belong to the field of computer science. The ability of data structure algorithm is one of the core abilities of programmers and will never be out of date.
Programmers do development work, some directions do not need mathematics, and some directions need specific types of mathematics (such as game development, graphic learning using a large number of numerical tools, etc.). ); Solving specific problems requires learning specific types of mathematics; Specializing in computer science research in a specific field requires a lot of mathematical knowledge in a specific field; In this case, it is good to learn the corresponding knowledge when you meet the needs of the corresponding problem. There is no need to care which is important (provided that you know what kind of knowledge you need in this direction), and there is no need to blindly learn all kinds of mathematics just to improve the "mathematical foundation".