Day 71 of 100 Days of Code Challenge: Fascinating Numbers

71 days strong. Small steps. Big consistency. ✅ 🚀 #Day71 of #100DaysOfCodeChallenge Today was about digit manipulation and careful validation logic. 📌 Problem 01: Check If The Number is Fascinating (Easy) A number is called fascinating if: When you concatenate n, 2*n, and 3*n, the resulting number contains all digits from 1 to 9 exactly once, and no zeros. 🧠 Logic: Compute 2*n and 3*n. Concatenate them with n into a single string. If total length is not 9 → return false. Use a boolean array to track digits (1–9). If any digit is 0 or repeated → return false. If all digits from 1 to 9 appear exactly once → return true. This problem looks simple, but it demands attention to edge cases and validation checks. Day 71 complete ✅ Discipline > motivation. Always. 🚀 #100DaysOfCode #Day71 #LeetCode #DSA #Math #Java #ProblemSolving #CodingJourney #LearnInPublic #Consistency

  • text

Discipline and consistency define success. keep growing bro

To view or add a comment, sign in

Explore content categories