sukritishah15 / DS-Algo-Point

This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript, PHP, Kotlin and Scala
MIT License
953 stars 293 forks source link

Krishnamurthy Number #843

Open rakshitgupta23 opened 1 year ago

rakshitgupta23 commented 1 year ago

🚀 Feature

A number is said to be Krishnamurthy if the factorial sum of all its digits is equal to that number.

Example

Number = 145
= 1! + 4! + 5!
= 1 + ( 4 3 2 1 ) + ( 5 4 3 2 * 1 )
= 1 + 24 + 120
= 145

Have you read the Contribution Guidelines?

Yes

Pitch

It is an important concept for beginners. I will show how to code it in java.

Assignees - @rakshitgupta23 - Java

sukritishah15 commented 1 year ago

@rakshitgupta23 - Assigned in Java