Recently, I read the beauty of programming-Microsoft's technical interview experience published by the liberal arts viewpoint. After two consecutive nights, I put down my books and closed them in bed, but couldn't fall asleep: what is programming, What is beauty, and what programming can be considered beautiful?
When I got this book, I was probably thinking about how to program it. After reading some of the books, I found that the book is about algorithm problems, but I will think about it later, you will understand that the book is not intended to talk about programming or algorithms. After reading this book, you may not have to implement every program. Every algorithm understands it, but you must know that this book is about ideas and solutions to problems.
No matter which company you are going to interview, you may have some questions about the issue. What is important in the interview is not to give the interviewer an answer, but to tell him a way of thinking and a way of solving the problem. The beauty of programming is to tell everyone how to find ideas, how to optimize ideas, and finally find ways to solve problems, and constantly pursue excellence on this road, this is the beauty of programming.
In general, I have summarized the following:
- Space and time are replaced by each other to achieve matching and balance, solving the problem of time or space complexity.
- The idea of divide governance is typically like binary search, which makes complex questions simple and simple questions simpler.
- Mathematical Reasoning, seemingly cumbersome things, must also follow the rules. We can use special circumstances to calculate general conditions, obtain general formulas, and find a simple solution to the problem.
- Recursive calling, although inefficient, can make some complex ideas easy to implement, especially for the calculation process.
- To solve complicated problems, extract a single simple problem from the problem, and then abstract a single simple problem into a specific implementation.
But in fact, when we solve problems in our respective fields, we can use them without that method. We can work hard to understand and integrate various ideas, continuous training of your ability to discover and solve problems in order to remain unchanged. This book tells the truth that programming is more important than thinking. Only thinking is beautiful, and programming is beautiful only when thinking is superior.
Author: FU Qiang, original article link: http://blog.csdn.net/threewall/archive/2009/05/12/4171019.aspx
The beauty of programming-Microsoft technical interview experience:Douban Discussion│ Purchase through Internet │ purchase through zhuoyue network │ purchase through Dangdang