Practicing Real Interview Thinking Solved a palindrome problem today — without using reverse. At first, I thought checking first and last character is enough. But I realized the correct approach is to compare characters from both ends step by step. This changed my thinking: Interview problems are not about complexity, but about correct logic. Small problems → Big learning. #Java #ProblemSolving #InterviewPrep #LearningInPublic
More Relevant Posts
-
Day15 #100 days of leetcode One of the most asked string problems in interviews — and a great way to sharpen your problem-solving skills. 🔍 Problem Given a string, find the longest substring that reads the same forward and backward. 💡 Approach Used: Expand Around Center Instead of checking every substring (which is expensive), we treat each character as a center and expand outward. #DataStructures #Algorithms #Java #CodingInterview #LeetCode #ProblemSolving #TechCareers
To view or add a comment, sign in
-
-
🚀 Day 4 – Daily DSA Challenge A quick check on your fundamentals can make a big difference in interviews. Here’s a simple output-based question to test your understanding of arrays and indexing. 💡 What will be the output? Share your answer in the comments and let’s discuss 👇 #DSA #Coding #Java #DataStructures #Algorithms #InterviewPreparation #SoftwareEngineering #Learning #TechCareers
To view or add a comment, sign in
-
-
Let’s push a little deeper 👇 Arrays — sounds easy, but most people mess this up in interviews. 👉 What does this print? int[] arr = new int[3]; System.out.println(arr[0]); 👉 And this one? int[] a = {1, 2, 3}; int[] b = a; b[0] = 100; System.out.println(a[0]); 👉 Also: - Are arrays stored in stack or heap? - Are they primitives or objects? If you get all of this right without hesitation, you're ahead of most candidates. Drop answers — no cheating 🙂 #Java #InterviewPrep #Programming
To view or add a comment, sign in
-
This week's interview challenge was Longest Substring Without Repeating Characters. Here’s the problem in its usual form: Given a string s, return the length of the longest substring without repeating characters. This one shows up in FAANG screens because it tests: * Whether you can recognize a variable-size sliding window pattern. * How you manage state: hash map vs. set vs. fixed-size array, and when “O(1) space” actually matters. * If you can argue 𝑂(𝑛) time in a way that convinces an interviewer who’s seen this 500+ times. I just posted a challenge review with: * A clean reference solution in Java, Python, and C#. * Side-by-side implementations using a character array, hash map, and set, with trade-offs for each. * A paid-only add-on on how interviewers really grade this question: the explanation patterns that separate “LeetCode grinder” from “strong hire.” 🔗 Read it all here: [Substack link]
To view or add a comment, sign in
-
🚀 A small #learning from my recent interview In one of my recent interviews, I was asked to write a program to create a deadlock and then explain how to fix it. Honestly, I’ve read about deadlocks before, but writing it during an interview made me think more practically. 𝐓𝐰𝐨 𝐭𝐡𝐫𝐞𝐚𝐝𝐬, 𝐭𝐰𝐨 𝐫𝐞𝐬𝐨𝐮𝐫𝐜𝐞𝐬: Thread 1 locks one resource and waits for the other Thread 2 does the opposite And that’s it… both threads are 𝐬𝐭𝐮𝐜𝐤 𝐟𝐨𝐫𝐞𝐯𝐞𝐫 What I liked about this question is — it’s simple, but it checks how well we understand real-world thread behavior. The discussion didn’t stop at just creating the deadlock. The interviewer was more interested in how I would avoid it. 𝐒𝐨𝐦𝐞 𝐤𝐞𝐲 𝐭𝐚𝐤𝐞𝐚𝐰𝐚𝐲𝐬 𝐟𝐨𝐫 𝐦𝐞: --> Always follow a consistent order while acquiring locks --> Be careful with nested synchronization --> Think about alternatives like tryLock or timeouts It was a good reminder that multithreading is not just about writing code, but about writing safe and predictable code. #Java #Multithreading #Concurrency #JavaDeveloper #BackendDevelopment #SoftwareEngineering #InterviewExperience #TechInterview #CodingInterview #Learning
To view or add a comment, sign in
-
-
10 String Patterns for Interviews Follow Algonur Visit https://www.algonur.com for more details Save this for your next Interview #DataStructures #Algorithms #CodingInterview #Programming #SoftwareEngineering #LeetCode #ProblemSolving #TechSkills #Developers #CodingTips
To view or add a comment, sign in
-
Most people solve “Valid Palindrome” like this. Clean the string → reverse → compare. It works… but that’s not what interviewers are looking for. The real test is: 👉 Can you handle messy input? 👉 Can you avoid extra space? 👉 Can you think in constraints? That’s where Two Pointers comes in. Small problem. Big difference in thinking. #DSA #Java #CodingInterview #TwoPointers #ProblemSolving #SoftwareEngineering #TechLearning
To view or add a comment, sign in
-
Today's Daily DSA Challenge focuses on a fundamental algorithm: Binary Search. What is the time complexity of Binary Search? Feel free to share your answers in the comments. Consistency is essential for mastering DSA and succeeding in top tech interviews. #dsa #coding #java #linkdin #code #job #interview #codecraft #c #dsachallange
To view or add a comment, sign in
-
-
Overcomplicated solutions are not a flex in #Amazon interviews. Swipe to see what actually gets you the offer! ↑ Watch before your next interview → link in comments! 🔗 #Python #DataStructures #AlgorithmInterview #CodingInterview #AmazonInterview #BinaryTrees #SoftwareEngineering #TechInterview #LeetCode #StrataScratch
To view or add a comment, sign in
-
🚀 Java Backend Interview Series – Day 4 Collections are asked in almost every interview 👇 📦 Collections Framework: 1️⃣ Internal working of ArrayList 2️⃣ Internal working of HashMap 3️⃣ HashMap vs Hashtable 4️⃣ ArrayList vs LinkedList 5️⃣ Vector vs ArrayList 6️⃣ What is immutable class? 7️⃣ Comparator vs Comparable 8️⃣ What causes ConcurrentModificationException? 9️⃣ What is CopyOnWriteArrayList? 🔟 When to use ConcurrentHashMap? 💡 If you don’t know internals → you’ll struggle in interviews 📌 Save this 👇 Comment “NEXT” for Day 5 #java #javainterviews #interviewpreparation #backend
To view or add a comment, sign in
Explore related topics
- Tips for Real-World Problem-Solving in Interviews
- Approaches to Array Problem Solving for Coding Interviews
- Problem-Solving Techniques for Analyst Interviews
- Problem Solving Techniques for Developers
- Problem-Solving Skills in Engineering Interviews
- Prioritizing Problem-Solving Skills in Coding Interviews
- Strategies for Solving Algorithmic Problems
- Demonstrating Problem-Solving Skills in JRF Interviews
- How to Evaluate Problem-Solving Skills in Interviews
- How to Solve Real Problems
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