#include using namespace std; int main(){ int T; cin >> T; for (int i = 0; i < T; i++){ int N, M; cin >> N >> M; vector A(N); for (int j = 0; j < N; j++){ cin >> A[j]; } bool ok = true; for (int j = 0; j < N - 1; j++){ if (A[j] + A[j + 1] < M){ ok = false; } } if (ok){ cout << "Yes" << endl; } else { cout << "No" << endl; } } }