#include using namespace std; #ifdef _RUTHEN #include "debug.hpp" #else #define show(...) true #endif using ll = long long; #define rep(i, n) for (int i = 0; i < (n); i++) template using V = vector; int main() { ios::sync_with_stdio(false); cin.tie(0); int T; cin >> T; rep(tt, T) { int N, M; cin >> N >> M; V A(N); rep(i, N) cin >> A[i]; bool ok = true; rep(i, N - 1) { if (A[i] + A[i + 1] < M) { ok = false; } } cout << (ok ? "Yes" : "No") << '\n'; } return 0; }