Back

Arihant Jain

Crafting Impactful A...ย โ€ขย 28d

๐Ÿง  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ย โ€ขย 8m

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

Reply
1
Image Description
Image Description

Sidharth s

Restarting -loop-beg...ย โ€ขย 8m

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ย โ€ขย 15d

๐Ÿš€ 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...ย โ€ขย 28d

๐Ÿš€ 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

Aryan Nagori

ย โ€ขย 

Siddhrans Technologiesย โ€ขย 22d

๐Ÿš€ 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
Image Description

Vikas Dwivedi

"Create and Conquer....ย โ€ขย 4m

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

Sanskar

Keen Learner and Exp...ย โ€ขย 17d

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
Image Description
Image Description

Vishu Bheda

ย โ€ขย 

Medialย โ€ขย 8m

In 2012, Facebook ran the most dangerous psychological experiment in history. Without consent, they manipulated the emotions of 689,000 random users. The results? So shocking, they tried to bury them. Here's how they REALLY built a $1.5 Trillion e

See More
15 Replies
8
16

CA Jasmeet Singh

In God We Trust, The...ย โ€ขย 5m

๐Ÿš€ GST Compliance Checklist for the New Financial Year โœ… A new financial year means a fresh start for your GST compliance! ๐Ÿ“†โœ… Stay ahead of deadlines, avoid penalties, and ensure smooth tax filings with this essential checklist. ๐Ÿ“Š๐Ÿ’ผ ๐Ÿ”น Review GST

See More
Reply
1
20

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