Generate array(or matrix) based on some condition

Правка en1, от sigsiv, 2023-01-09 06:25:09

Hello everyone!

Problem B of last round (Educational 141) was a nightmare for me. And it was not the first time that I'm not able to solve the questions where we have to find an array or matrix based on certain conditions given in the problem statement.

Well the moment I see such questions I feel like:

Now my approach for solving such questions was pretty random and inefficient. But thanks to BledDest and MikeMirzyanov's post, I now have a better understanding to approach such problems. As I went to find out more problems based this pattern to practice, I couldn't find many. Hence this blog!

I'm trying to compile the questions where we have to generate arrays/permutation/matrix based on certain conditions. If you have come across such question and feel that it's worth mentioning here, please comment down their links. It would really help me and others who are struggling with such pattern of questions.

PS: Feel free to comment down if you have your own way(apart from what BledDest and others mentioned) of solving such questions.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский sigsiv 2023-01-09 06:29:41 3 Tiny change: 'ems based this patt' -> 'ems based on this patt'
en1 Английский sigsiv 2023-01-09 06:25:09 1245 Initial revision (published)