🧠 Day 11 of 75 Days of Knowledge Theme: Strings & Character Arrays — Java | Python | JavaScript Strings are how we represent text, names, and messages in code. They look simple — but they hide deep logic for manipulation, comparison, and pattern matching. Today’s focus: String creation, operations, and common interview problems. 💡 Concepts Covered String declaration and immutability String concatenation and interpolation Traversing strings using loops Common methods (length, substring, indexOf, replace, split, join) String comparison & character arrays Converting between strings and numbers 📚 Learn Strings in Each Language 📘 Python — Strings 👉 https://lnkd.in/gfwG6ztm 👉 https://lnkd.in/gSkGf3MG 📗 Java — Strings & StringBuilder 👉 https://lnkd.in/gFJwy5FK 👉 https://lnkd.in/g--34c7f 📙 JavaScript — Strings 👉 https://lnkd.in/gUWfvU4Z 👉 https://lnkd.in/gM-mRGNf 🧩 Try This Practice Idea Reverse a string manually (without built-ins) Count vowels and consonants Check if a string is palindrome Find frequency of each character 🧠 Practice Online → https://replit.com/~ #75DaysOfKnowledge #Strings #ProgrammingBasics #Java #Python #JavaScript #ProblemSolving #LeetCode #CodingJourney #LearningToCode
"Day 11: Mastering Strings in Java, Python, JavaScript"
More Relevant Posts
-
🔥 Day 5 of 75 Days of Knowledge Theme: Input and Output (I/O) Operations — Java | Python | JavaScript Every interactive program depends on I/O — taking user input and displaying results. From reading numbers to handling files, mastering I/O gives your code the ability to communicate with the real world. 🌍 💡 Concepts Covered Reading input from users Displaying formatted output File reading & writing basics Console-based interaction 📚 Learn I/O in Your Favorite Language 📘 Python – Input, Output & Files 👉 https://lnkd.in/gHEKrd_T 👉 https://lnkd.in/guDkuq98 📗 Java – Input/Output & File Handling 👉 https://lnkd.in/gF-3Tb7D 👉 https://lnkd.in/gkMwMKaf 📙 JavaScript – Input, Output & File Reading (Node.js) 👉 https://lnkd.in/gWnnAxe6 👉 https://lnkd.in/gXssxiii Hands-On Practice 🧠 Try online: https://replit.com/~ 💡 Visualize flow: https://pythontutor.com/ #75DaysOfKnowledge #LeetCode #Java #Python #JavaScript #InputOutput #CodingJourney #LearnToCode
To view or add a comment, sign in
-
🧠 Day 20 Theme: Sorting & Frequency-Based Problem Solving Concepts Covered: Sorting techniques (Bubble, Selection, Insertion, Merge, Quick) Built-in sort functions in Java, Python, JavaScript Sorting arrays & lists of objects Pair logic using sorted order (two-pointer & binary search techniques) Frequency pairing after sorting (count, group, compare) 📚 Learn from These Resources 📘 Sorting in Java 👉 https://lnkd.in/gnbjPpUM 👉 https://lnkd.in/gXY8FVjm 📗 Sorting in Python 👉 https://lnkd.in/gk3s4T4y 👉 https://lnkd.in/ghGHcBgi 📙 Sorting in JavaScript 👉 https://lnkd.in/gT-dJVdY 👉 https://lnkd.in/gZmwYQRn #75DaysOfKnowledge #Sorting #AlgorithmDesign #LeetCode #ProblemSolving #Java #Python #JavaScript #CodingJourney
To view or add a comment, sign in
-
🧠 Day 12 of 75 Days of Knowledge Theme: Functions & Methods — Java | Python | JavaScript Functions are how we organize logic into reusable blocks. They make your code cleaner, smarter, and easier to test. Today’s focus: how functions work, pass values, and return results in each language. 💡 Concepts Covered Defining and calling functions Function parameters and arguments Return values and scope Default & keyword arguments (Python) Function overloading (Java) Arrow functions (JavaScript) Pass by value vs reference 📚 Learn Functions in Each Language 📘 Python — Functions 👉 https://lnkd.in/g5xhz9Aj 👉 https://lnkd.in/g42sJBRD 📗 Java — Methods 👉 https://lnkd.in/gQuK4T9b 👉 https://lnkd.in/gn2f2pz6 📙 JavaScript — Functions 👉 https://lnkd.in/gmfbZkdA 👉 https://lnkd.in/gUyQ74N8 🧩 Try This Practice Idea Write a function to find factorial of a number Create a function to check prime numbers Make a greeting function with parameters Try recursive function for Fibonacci series #75DaysOfKnowledge #ProgrammingBasics #Functions #Methods #CodeReusability #Java #Python #JavaScript #LeetCode #CodingJourney #LearnToCode
To view or add a comment, sign in
-
🔥 Day 6 of 75 Days of Knowledge Theme: Operators & Expressions — Java | Python | JavaScript Operators are the tools that make logic work. They help us calculate, compare, and make decisions in code. Today’s focus was on mastering expressions — how data combines and transforms using operators. 💡 Concepts Covered Arithmetic, Comparison & Logical Operators Assignment & Bitwise Operators Operator Precedence Expressions & Evaluation 📚 Learn Operators in Each Language 📘 Python – Operators Made Simple 👉 https://lnkd.in/g9MTvK3F 👉 https://lnkd.in/gVgBrR4s 📗 Java – Operator Types & Precedence 👉 https://lnkd.in/gMJcCe9z 👉 https://lnkd.in/gBefza2s 📙 JavaScript – Expressions & Operators 👉 https://lnkd.in/gHjTpPk9 👉 https://lnkd.in/gjnhepYH 🧮 Mini Practice Ideas ✅ Try building a simple calculator ✅ Compare user inputs with logical operators ✅ Experiment with precedence using parentheses 💡 Practice online: https://replit.com/~ 💬 Reflection: Understanding operators builds the logic engine inside your brain 🧠 Every condition, loop, and algorithm you write relies on mastering these small but powerful symbols. #75DaysOfKnowledge #ProgrammingBasics #Operators #Expressions #Java #Python #JavaScript #LeetCode #CodingJourney #LearnToCode
To view or add a comment, sign in
-
Day 8 – Strong Number (Factorial Sum of Digits) – Java & Python 💡 Problem: A number is called a Strong Number (or Factorion) if the sum of the factorial of its digits equals the number itself. Examples: 145 → 1! + 4! + 5! = 145 ✅ 2 → 2! = 2 ✅ 40585 → 4! + 0! + 5! + 8! + 5! = 40585 ✅ 123 → 1! + 2! + 3! = 9 ❌ 🧠 Approach: 1️⃣ Extract each digit of the number. 2️⃣ Find the factorial of that digit and add it to a running sum. 3️⃣ Compare the final sum with the original number. Optimization Tip: Precompute factorials of digits 0–9 once and reuse them — avoids repetitive calculations. Time Complexity: O(d) Space Complexity: O(1) where d = number of digits. our Turn: Did you know there are only four Strong Numbers (1, 2, 145, 40585) under 1 million? Try running the code and share your results 👇 #CodeWithTanseer #DSA #Java #Python #CodingChallenge #ProblemSolving #Numbers #MathInCode #SoftwareEngineer #BackendDeveloper #InterviewPrep #LogicalThinking #Factorial
To view or add a comment, sign in
-
-
🧠 Day 9 of 75 Days of Knowledge Theme: Functions & Modular Programming — Java | Python | JavaScript Functions are like mini-programs inside your program — they take input, do something, and give back results. They make your code clean, reusable, and easier to debug. Today’s focus: defining, calling, and returning values from functions, and learning parameters, scope, and modularity. 💡 Concepts Covered Function definition & calling Parameters and arguments Return values Local vs global scope Reusable modular code 📚 Learn Functions in Each Language 📘 Python — Functions & Return Values 👉 https://lnkd.in/g5xhz9Aj 👉 https://lnkd.in/g42sJBRD 📗 Java — Methods in Java 👉 https://lnkd.in/gv_ZSdVe 👉 https://lnkd.in/gn2f2pz6 📙 JavaScript — Functions 👉 https://lnkd.in/gmfbZkdA 👉 https://lnkd.in/gUyQ74N8 🧩 Try This Practice Idea Write a function to find the factorial of a number Build a greeting function that takes a name and returns a message Create a calculator using multiple small functions #75DaysOfKnowledge #ProgrammingBasics #Functions #ModularProgramming #CleanCode #Java #Python #JavaScript #LeetCode #CodingJourney #LearnToCode
To view or add a comment, sign in
-
Day 18 – Rotate an Array by K Positions (Java & Python) > 💡 Problem: Given an array, rotate it right by K positions. Example: Input → arr = [1, 2, 3, 4, 5, 6, 7], k = 3 Output → [5, 6, 7, 1, 2, 3, 4] 🧠 Approach 1 – Brute Force: Move the last element to the front k times. ❌ Works but inefficient → O(n × k) ✅ Approach 2 – Reversal Algorithm (Optimized O(n)): 1️⃣ Reverse the entire array 2️⃣ Reverse the first k elements 3️⃣ Reverse the remaining n - k elements Example: Step 1: Reverse full → [7, 6, 5, 4, 3, 2, 1] Step 2: Reverse first k → [5, 6, 7, 4, 3, 2, 1] Step 3: Reverse rest → [5, 6, 7, 1, 2, 3, 4] Time Complexity: O(n) Space Complexity: O(1) Your Turn: Can you modify this to rotate left by K positions instead of right? Drop your version below 👇 #CodeWithTanseer #DSA #Java #Python #CodingChallenge #ProblemSolving #Arrays #Optimization #ReversalAlgorithm #BackendDeveloper #SoftwareEngineer #InterviewPrep
To view or add a comment, sign in
-
-
Day 15 – Find the Largest Element in an Array (Java & Python) 💡 Problem: Given an array of integers, find the largest element. Example: Input → [10, 25, 3, 99, 56, 77] Output → 99 🧠 Approach: 1️⃣ Initialize a variable max with the first element. 2️⃣ Traverse the array — If arr[i] > max, update max = arr[i]. 3️⃣ After one full pass, max holds the largest value. Time Complexity: O(n) Space Complexity: O(1) Your Turn: Can you modify this to find both minimum and maximum in a single traversal? (Hint: use two variables 😉) Drop your code below 👇 #CodeWithTanseer #DSA #Java #Python #CodingChallenge #ProblemSolving #Arrays #LogicBuilding #SoftwareEngineer #BackendDeveloper #InterviewPrep
To view or add a comment, sign in
-
-
🚀 Quick Experiment: Comparing Lines of Code Across Languages I recently did a small personal experiment to compare how many lines of code (LOC) are typically required to implement the same task in Python, Java, and C++. 📌 Assumption: Each new statement appears on its own line — no one-liners or compressed logic. Here are the results: 🐍 Python: 11 LOC ☕ Java: 36 LOC 💻 C++: 44 LOC Key Takeaways Python is very concise for implementing tasks. Java requires more structure and verbosity. C++ is the most verbose among the three. 💡 Note: This experiment considers Lines of Code only, not execution speed or efficiency. I’d love to hear your thoughts: Do you value code compactness over verbosity for readability and maintenance? Hashtags #Programming #Python #Java #CPlusPlus #CodeEfficiency #SoftwareDevelopment #CodingExperiment #DeveloperInsights #TechLearning #ProgrammingTips
To view or add a comment, sign in
-
Day 16 – Find the Second Largest Element in an Array (Java & Python) > 💡 Problem: Given an array of integers, find the second largest element. Example: Input → [10, 25, 3, 99, 56, 77] Output → 77 Approach – Single Pass (Optimized O(n)): Initialize two variables: first = second = -∞ Traverse the array: If current > first → update second = first, then first = current. Else if current > second and current != first → update second = current. One traversal, no sorting needed! Your Turn: Can you modify this to find both smallest and second smallest elements? Drop your version below 👇 #CodeWithTanseer #DSA #Java #Python #CodingChallenge #ProblemSolving #Arrays #Optimization #SoftwareEngineer #BackendDeveloper #InterviewPrep
To view or add a comment, sign in
-
Explore related topics
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