N Palindrome
CodeChefOpen on judge ↗
You are given a Number $N$ and a base $B$. You have to tell whether the number is a palindrome or not. ###Input: - First line contains number of test cases $T$. - First line of each test case contains $N$, $B$ denoting the number and base. ###Output: For each test case print "YES" if it is a palindrome or "NO" without quotes in a new line. ###Constraints - $1 \leq T \leq 10^3$ - $0 \leq N \
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start