Math, asked by fyst6398, 1 year ago

Number of ways to permute n digits such that sum is divisible by 3

Answers

Answered by sargamkashyap
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

<b>HOPE IT HELPS U IF YEAH PLZ MARK IT AS BRAINLIEST ✌️❣️
Similar questions