Discussion of Round 1 Problems

Problem 1: The Array Sum Game

Participants were given an array of integers and tasked with finding the sum of all its elements.

Solution

To solve this problem, I wrote a simple loop to iterate through the array and calculate the sum of its elements.

Problem 2: String Reversal

This challenge required reversing a given string without using built-in reverse functions.

Solution

I tackled this problem by creating a new string and iterating through the characters of the original string in reverse order, appending each character to the new string.

Problem 3: Pointer Puzzler

The third problem delved into pointers, requiring participants to manipulate pointer variables and perform specific operations.

Solution

For this problem, I used pointer arithmetic to perform the required operations on the given pointers. The actual solution varied based on the specific operations and constraints provided.

I successfully solved all three problems, ensuring that I crossed the 50% threshold required to advance to the second round.

My Code Frenzy Experience: Challenging Rounds and a Valuable Learning Journey

Similar Reads

About the Contest

Participating in coding competitions not only tests your problem-solving skills but also provides a platform for research and development. My recent experience in the “Code Frenzy 1.0” contest, organized by the coding club of my university, “GeeksUnited,” inspired by “GeeksForGeeks,” was nothing short of exhilarating. This article takes you through the journey of Code Frenzy, including an overview of the contest, the challenges encountered, the solutions explored, and the valuable lessons learned along the way....

Prizes

Since it was our first offline contest in the college (for the freshers), the prizes were not that much but still, they were captivating:...

Round 1: A Glimpse into the Challenge

The first round aimed to assess basic coding skills. It comprised three problems, each from different areas: Arrays, Strings, and Pointers....

Discussion of Round 1 Problems

Problem 1: The Array Sum Game...

Round 2: Stepping Up the Complexity

The second round of Code Frenzy was considerably more challenging, putting participants’ problem-solving skills to the test. Just like in the first round, three questions were presented, but this time, the complexity increased significantly....

Discussion of Round 2 Problems

Problem 1: The K-Diff Subarray...

Conclusion: Lessons Learned

Participating in “Code Frenzy” was a journey filled with challenges and learning opportunities. It reinforced the importance of not only mastering the fundamentals but also continuously pushing oneself to tackle more complex problems. The contest’s challenging questions provided a glimpse into the kind of challenges that advanced coders might encounter, expanding my knowledge and problem-solving skills....