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.