Day 41 – Counting Uppercase Letters in a String: Today’s task focused on identifying and counting uppercase letters in a user-provided string. By iterating through each character and applying conditional checks, the solution accurately detects uppercase characters. This exercise strengthened understanding of string traversal, built-in string methods, and logical conditions—key fundamentals for text analysis and data preprocessing. GitHub Code: https://lnkd.in/g5HQM5je #Day41 #100DaysOfCode #Python #StringManipulation #LogicBuilding #DailyCoding #Consistency
Counting Uppercase Letters in a String with Python
More Relevant Posts
-
Day 45 – Splitting and Joining a String: Today’s task focused on splitting a string using a user-defined delimiter and then joining the parts back into a clean, readable format. This exercise strengthened understanding of string methods, input handling, and text restructuring, which are essential skills for data preprocessing and text manipulation in real-world applications. GitHub Code: https://lnkd.in/gznh5VpR #Day45 #100DaysOfCode #Python #StringManipulation #LogicBuilding #TextProcessing #DailyCoding #Consistency
To view or add a comment, sign in
-
-
🚀 Day 56 — LeetCode 451: Sort Characters by Frequency using HashMap + Sorting. 💡 Key Learnings: • Counting character frequency using dictionary • Custom sorting with key=lambda • Efficient string building using "".join() • Understanding time vs space complexity trade-offs ⏱️ Complexity: Time — O(n + k log k) Space — O(k) #Day56 #LeetCode #Python #DataStructures #DSA #CodingJourney #ProblemSolving
To view or add a comment, sign in
-
-
Solved an interesting array problem using prefix sums + hash maps 🚀 This solution efficiently finds the longest subarray based on a comparison condition (arr[i] > k) by converting the problem into a prefix sum balance and tracking first occurrences with a hashmap. ✅ O(n) time complexity ✅ Smart use of prefix sums ✅ Great example of turning a complex condition into a simple math problem Always fun when problem-solving meets optimization! 💻📊 #Python #DataStructures #Algorithms #CodingInterview #ProblemSolving #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Leveling Up with NumPy in Python! Exploring array creation and slicing using np.arange() in JupyterLab. From simple lists to structured arrays, every line of code is a step toward deeper data understanding. 📌 Today’s practice: Created arrays with np.arange() Explored slicing techniques Reinforced fundamentals for data manipulation 🔍 Why it matters: These basics are the building blocks for data analysis, machine learning, and beyond. 💬 Curious to know—what was your first NumPy experiment? #Python #NumPy #JupyterLab #DataAnalytics #LearningJourney #HyderabadTech #LinkedInLearning
To view or add a comment, sign in
-
-
🎥 Demo in action! Yesterday I shared screenshots of my Movie Recommendation System. Here’s a quick 50-second walkthrough of how it actually works. Select a movie → Instantly get 5 similar recommendations with posters. Built using: • Content-based filtering • CountVectorizer • Cosine similarity • Streamlit + Python Still improving it — next step: collaborative filtering. Would love your thoughts 🙌 #MachineLearning #Python #RecommendationSystem #StudentDeveloper
To view or add a comment, sign in
-
Still slicing DataFrames the hard way? Here are the three essentials: grab one column with df['col'], pick multiple with df[['a','b']], then filter rows by building a boolean mask like df[df['age'] >= 18]. Master these and inspecting/subsetting data becomes effortless.#pandas #python #datascience #dataanalysis
To view or add a comment, sign in
-
-
🚀 Day 5/30 | LeetCode Problem: Repeated Substring Pattern (459) Problem: Given a string s, check if it can be constructed by repeating one of its substrings multiple times. Approach (Smart String Trick): Concatenate the string with itself → (s + s) Remove the first and last characters If the original string s exists inside this new string, then it is made of a repeating substring This works because repeating patterns always reappear in the middle of (s + s). Sometimes, clever observations can replace complex loops and conditions. 📌 Accepted ✅ | All test cases passed 🔖 Hashtags #LeetCode #30DaysOfLeetCode #Day5 #Python #Strings #Algorithms #ProblemSolving #CodingJourney #SoftwareEngineering #TechCommunity
To view or add a comment, sign in
-
-
Today I explored some commonly used tuple methods and functions. Practiced using count() to identify how many times an element appears, index() including start and stop arguments to locate values safely and sorted() to organize tuple data without modifying the original structure. Since tuples are immutable, understanding how to read and process data from them is essential. #Python #LearningInPublic #DataStructures #ProgrammingBasics #DataAnalytics
To view or add a comment, sign in
-
LeetCode | Find Numbers with Even Number of Digits 🔢 🔹 Approaches: • Digit counting using division • String length conversion 🔹 Time Complexity: O(n) 🔹 Space Complexity: O(1) Daily DSA practice to improve logic and consistency 🚀 “We count digits either mathematically or using string length, then check if it’s even.” #LeetCode #DSA #Arrays #Python #CodingJourney #LearningInPublic
To view or add a comment, sign in
-
🚀 𝗗𝗮𝘆 𝟯/𝟯𝟬 — 𝗗𝗦𝗔 𝗖𝗵𝗮𝗹𝗹𝗲𝗻𝗴𝗲 Consistency check ✔️ Today was about working with counting and uniqueness patterns — figuring out when a set or dictionary can save you from writing unnecessary loops (and unnecessary headaches). 🔎 𝗗𝗮𝘆 𝟯 𝗙𝗼𝗰𝘂𝘀 • Frequency/count tracking • Using sets for uniqueness checks • Solved: ✅ Majority Element ✅ Missing Number ✅ Single Number Small progress, fewer overcomplicated solutions, and only mild confusion — I’ll take that as a win On to Day 4 💪 #DSA #Python #LeetCode #LearningInPublic #Consistency #SoftwareEngineering
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development