Riya Lodha’s Post

View profile for Riya Lodha, graphic

MCA Student | Passionate about Coding & Software Development | Coordinator of Tech Design Nexus JU | Problem Solver | Leader | Team Player | Lifelong Learner | Seeking Opportunities for Growth | Commitment to Excellence

𝐃𝐚𝐲 𝟓𝟎/𝟏𝟎𝟎: Celebrating the halfway mark in the 𝟏𝟎𝟎 𝐝𝐚𝐲𝐬 𝐜𝐡𝐚𝐥𝐥𝐞𝐧𝐠𝐞 𝐨𝐟 𝐩𝐫𝐨𝐛𝐞𝐦 𝐬𝐨𝐥𝐯𝐢𝐧𝐠! 🎉🚀 🔍 𝐂𝐡𝐚𝐥𝐥𝐞𝐧𝐠𝐞: 𝐅𝐢𝐧𝐝 𝐀𝐥𝐥 𝐀𝐧𝐚𝐠𝐫𝐚𝐦𝐬 𝐢𝐧 𝐚 𝐒𝐭𝐫𝐢𝐧𝐠 📝 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧 𝐎𝐯𝐞𝐫𝐯𝐢𝐞𝐰: - 𝐓𝐚𝐬𝐤:Identify all starting indices of anagrams of a given string `PTR` within another string `STR`. - 𝐄𝐱𝐚𝐦𝐩𝐥𝐞: For `STR = "CBAEBABACD"` and `PTR = "ABC"`, the starting indices are `0` and `6`. - 𝐀𝐩𝐩𝐫𝐨𝐚𝐜𝐡:  - Utilize frequency counting to track character occurrences.  - Implement a sliding window technique to efficiently find all anagram indices.  - Compare frequency counts of the current window with `PTR`'s counts. ✅ 𝐊𝐞𝐲 𝐂𝐨𝐧𝐬𝐢𝐝𝐞𝐫𝐚𝐭𝐢𝐨𝐧𝐬:- Ensure to handle multiple test cases. - Return an empty list if no anagrams are found. ⏱ 𝐓𝐢𝐦𝐞 𝐂𝐨𝐦𝐩𝐥𝐞𝐱𝐢𝐭𝐲: O(N) for iterating through `STR`. 💾 𝐒𝐩𝐚𝐜𝐞 𝐂𝐨𝐦𝐩𝐥𝐞𝐱𝐢𝐭𝐲: O(1) for using fixed-size frequency arrays. Reflecting on this journey, I’m reminded of the words of 𝐀𝐥𝐛𝐞𝐫𝐭 𝐄𝐢𝐧𝐬𝐭𝐞𝐢𝐧: “𝐋𝐢𝐟𝐞 𝐢𝐬 𝐥𝐢𝐤𝐞 𝐫𝐢𝐝𝐢𝐧𝐠 𝐚 𝐛𝐢𝐜𝐲𝐜𝐥𝐞. 𝐓𝐨 𝐤𝐞𝐞𝐩 𝐲𝐨𝐮𝐫 𝐛𝐚𝐥𝐚𝐧𝐜𝐞, 𝐲𝐨𝐮 𝐦𝐮𝐬𝐭 𝐤𝐞𝐞𝐩 𝐦𝐨𝐯𝐢𝐧𝐠.” Every problem solved is a step forward, and I'm excited for the challenges that lie ahead! 🌟 Here's to the first 50 days of growth and learning, and to the next 50 filled with more problem-solving adventures! 💪 #Day50 #Anagrams #CodingChallenge #ProblemSolving #100DaysOfCode #DeveloperLife #WomenInTech #LearnToCode #TechSkills #DailyCoding #CodeNewbie #Programming #Algorithm #TechCommunity #SoftwareDevelopment #CodeChallenge

  • graphical user interface, text, application
KUSUM .

HR of ONE Group Developers || "Supporting Three Non-Profits for a Better Tomorrow" || Miranda house college

4mo

Keep doing 💪 keep shining 🌟 Every small efforts matters!! Riya Lodha

🌟 Congratulations Riya Lodha for completing the half milestone of the 100 Days of Code Challenge! 🎉 Keep up the great work! 🚀

See more comments

To view or add a comment, sign in

Explore topics