Talk about algorithms.Copy the code

I’ve seen a lot of great testers, advanced testers, but when it comes to algorithms, they shy away.

Do algorithmic questions have any use in our testing domain?

Some people say it works, but they can’t find many places where algorithms are used.

Some people say it doesn’t work, because no algorithm can do the job.

Are algorithms really just icing on the cake in the testing world?

I don’t know and I don’t know. But I think algorithms are used in two places:

  1. Very low-level data processing
  2. Simple business logic

The underlying data processing, the very difficult algorithms, the slow logic optimization. Bloggers do use a lot of algorithms on top of these layers, but they all have one thing in common: they’re building wheels. In today’s era of commercialism, making wheels is more regarded as a derogatory term. So few people are trying to actually build wheels, and even fewer are using complex algorithms to solve problems.

Take this code for example:

For break else Continue is an algorithm that calculates groups of code to execute based on a path, with frantic application of for break else Continue.

Or take this:

Is an algorithm that automatically calculates the shortest jump path of two pages.

Simple business logic is used a lot, and the algorithm is very simple, so simple that many people don’t realize it’s an algorithm. Such as to log statistics, such as to extract test data in Excel, such as keyword automation. In fact, this is the application of the algorithm in the real business.

So algorithms are everywhere, as long as you start writing code, automation or any script development.

After all, bubble sort is also an algorithm

So the most popular and authoritative brush algorithm site is undoubtedly LeetCode.

A lot of companies’ interview algorithms come from here. Even explicit code requirements, Leetcode to master medium difficulty, such as shrimp, Gaos ~

So a large group of testers in our group, who have recently formed an alliance, started to swipe Leetcode, and the atmosphere is happy to swipe.

It has even recently started to define the level of leetcode within the group.

At present, many friends in the group have also reached The golden Dan Yuan Ying.

And bloggers have reached the late stage of deification

If it is difficult to swipe the questions directly, it is suggested to click on the “Learn” menu of LeetCode first and follow the series of books to learn and do it at the same time:

As a period of transformation, but read 21 algorithm e-books oh ~

I even made a formula for all kinds of questions. Of course, this tip is not shared yet, but it is often shared in groups.