Back

Arihant Jain

Crafting Impactful A... • 2m

🧠 Programming Challenge of the Day Can you solve this? You're given an integer array (with both positive and negative values). Each element in the array represents the number of stars (*) to be printed vertically in its column: 🔹 Positive values → stars above the baseline 🔹 Negative values → stars below the baseline 🔹 Zero → no stars for that column Your task is to display the array values as a vertical star chart in Java, including a baseline (dashed line) at zero. The array size and values should be dynamic (user input). 💡 Example Input: int[] data = {2, 3, -1, 4, -2}; 🌟 Expected Output Pattern: * * * * * * * * * --------------- * * * How would you approach this? Let’s hear your solutions! #Java #CodingChallenge #PatternPrinting #TechInterview #100DaysOfCode #Programmers #DeveloperChallenge #LogicBuilding #CodeNewbie

Reply
2
3

More like this

Recommendations from Medial

Somen Das

Senior developer | b... • 1y

Array.reduce() is Goated the Swiss army knife Summing Numbers: Using reduce() to calculate the sum of numbers in an array. Flattening Arrays: Flattening a nested array into a single array. Grouping Objects: Grouping objects based on a speci

See More
Reply
5

Inflation

Building illusion • 9m

Who can we change the mindset in positive if your surrounding is negative

Reply
1

Shubham

Fearless • 13d

🚀 Day 4/21 – My JavaScript Learning Journey Today’s focus: Arrays in JavaScript 📦 An Array is a special object in JS used to store multiple values in a single variable. 🔹 Creating Arrays let fruits = ["Apple", "Banana", "Mango"]; 🔹 Common Me

See More
Reply
3
Image Description
Image Description

Sidharth s

Restarting -loop-beg... • 9m

Ever thought how hashmaps work internally in java ,, lets understand So in java , array of LinkedLists is used to implement hashmap. for example when we write HashMaphmap=new HashMap<>(); hmap.put("sss",1); when we intialize a

See More
3 Replies
2
8

Aryan Nagori

 • 

Siddhrans Technologies • 2m

🚀 Advanced Java Course Progress: Week 2 Completed! Thrilled to share my progress on GeeksforGeeks - Advanced Java course! Week 2 was all about bringing OOP concepts to life: 🔹 Classes & Objects → Building blocks of my code 🔹 Encapsulation → Kee

See More
Reply
1
Image Description

Mithilesh Mishra

🚀 Founder @ HiringR... • 2m

🚀 Internship Opportunity: Java Full Stack Developer at HiringReferals.com! We are looking for 3-4 Java Full Stack Developer Interns to join our tech team at HiringReferals.com, India's fastest-growing referral-based hiring platform. 🔹 Role: Java

See More
2 Replies
2
5
Image Description

Vikas Dwivedi

"Create and Conquer.... • 6m

Hey everyone! I'm working on an AI-driven fitness app designed to revolutionize personalized workout and health tracking. We’re in need now we need a Kotlin/Java developer to help with backend development and mobile app integration. 🔹 Tech Stack Ne

See More
1 Reply
1
3
Image Description

Aryan Nagori

 • 

Siddhrans Technologies • 2m

🚀 DSA Practice Update – 50+ LeetCode Problems Solved Over the past few weeks, I’ve been consistently practicing DSA problems on LeetCode, and I’m excited to share that I’ve now solved 50+ problems across a variety of topics. I’ve applied concepts

See More
1 Reply
3

Sulaiman P

Brand Identity Desig... • 1m

Rate this Logo ★★★★★ When a qatar-based digital marketing agency approached me to rebrand their outdated wordmark logo, the challenge was clear: “Make it unforgettable—something that breaks the mold.” The client’s original design felt generic, but t

See More
Reply
2

Sanskar

Keen Learner and Exp... • 2m

Day 4 of learning python as a beginner. Topic: printing * pattern using while and for loop. I took the famous challenge of printing a * (star) pattern my goal was to print a triangle and diamond shape pattern. first I used int(input()) function to

See More
Reply
1

Download the medial app to read full posts, comements and news.