Given a binary matrix filled with 0s and 1s, find the largest rectangle containing only 1s and return its area.
{
"matrix": [
[
"1",
"0",
"1",
"0",
"0"
],
[
"1",
"0",
"1",
"1",
"1"
],
[
"1",
"1",
"1",
"1",
"1"
],
[
"1",
"0",
"0",
"1",
"0"
]
]
}6{
"matrix": [
[
"0"
]
]
}0{
"matrix": [
[
"1"
]
]
}1Sign in to Run Code and Submit