Number of ways to permute n digits such that sum is divisible by 3
Answers
Answered by
6
Given an integer N. The task is to check whether any of its permutations is a palindrome and divisible by 3 or not.
Examples :
Input : N = 34734 Output : True
Input : N = 34234 Output : False
✌️❣️
Examples :
Input : N = 34734 Output : True
Input : N = 34234 Output : False
✌️❣️
Similar questions