当前位置:网站首页>leetcode:1504. Count the number of all 1 sub rectangles

leetcode:1504. Count the number of all 1 sub rectangles

2022-06-24 14:11:00 Oceanstar's learning notes

Title source

Title Description

 Insert picture description here
 Insert picture description here

title

problem :

  • Must be in the form of 0 Matrix of behavior base , Its interior is full of 1 How many
  • Must be in the form of 1 Matrix of behavior base , Its interior is full of 1 How many
  • Must be in the form of 2 Matrix of behavior base , Its interior is full of 1 How many
  • Then add up all the above , That's the answer.

 Insert picture description here

that , A matrix based on a certain behavior , Its interior is full of 1 How many , How should I ask ?

原网站

版权声明
本文为[Oceanstar's learning notes]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241153447384.html