BFS
跳跃游戏III
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
bool canReach(vector<int>& arr, int start) {
if (arr[start] == 0) return true;
BFS
跳跃游戏III
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
bool canReach(vector<int>& arr, int start) {
if (arr[start] == 0) return true;