hey mate here is the answer
There really is no "correct answer", because most highly intellectual endeavors improve one's capacity to think, and enhance logical thought. But there are different "ways of thinking" that are all valuable, and which "ways of thinking" that a branch or subject engages and develops depends on the topic/branch.
But in general, there is no replacement for courses that emphasize critical thinking, problem solving, and introductory logic ("Elementary Logic", "Symbolic Logic") the latter sometimes offered in math departments, but also at times by Philosophy departments. Course offerings such as Discrete Mathematics cover introductory logic, elementary set theory, and a flexible array of topics which require problem solving of one form or another. For those planning to major in mathematics, there are often classes that provide a more formal introduction to proofs and higher-level mathematics, which are valuable even to those not planning to major in math.
If you are sincerely interested in improving the clarity and quality of your thinking, and becoming a versatile thinker, particularly within mathematics, I recommend each and every of the following references:
Polya, How to solve it;
Velleman, How to Prove It;
Mason, Burton, Stacey, Thinking Mathematically.
mark me as brainliest.