Coding homework hel...
 
Notifications
Clear all

Coding homework help communities that won't make you feel stupid

19 Posts
15 Users
0 Reactions
101 Views
Infinity@X
(@infinityx)
Eminent Member
Joined: 4 weeks ago
Posts: 18
Topic starter  

Hey all, just had a really frustrating experience trying to get coding homework help on Stack Overflow. Asked a question about my Java assignment and got immediately downvoted and someone commented "This is basic stuff, did you even try to Google it?" 😤

I DID google it for hours! I'm only 3 weeks into my first CS course ever! Anyone know communities that are actually helpful for beginners without making you feel dumb for asking questions? I'm struggling with these array methods and could really use some guidance.



   
Quote
Sophia_Frost
(@sophia_frost)
Eminent Member
Joined: 1 month ago
Posts: 24
 

I feel your pain! Stack Overflow can be brutal for beginners. For coding homework help, I've had much better experiences with:

1. Reddit's r/learnprogramming - they have a rule against being condescending to newbies
2. The Discord server "The Programmer's Hangout" - has dedicated help channels by language
3. CS50's Discord (even if you're not taking the course)

These places actually remember what it's like to be a beginner! What specific array methods are you struggling with?



   
ReplyQuote
Infinity@X
(@infinityx)
Eminent Member
Joined: 4 weeks ago
Posts: 18
Topic starter  

@Sophia_Frost Thanks for the suggestions! I'm trying to understand how to implement a method that finds the largest element in an array, but then also returns its index. I can find the max value ok, but I keep losing track of where it was in the array. My code so far:

```java
public static int findMaxIndex(int[] arr) {
int max = arr[0];
for (int i = 1; i < arr.length; i++) {
if (arr[i] > max) {
max = arr[i];
}
}
// But now I don't know how to return the index...
return ?;
}
```



   
ReplyQuote
NeonPhantom77
(@neonphantom77)
Eminent Member
Joined: 1 month ago
Posts: 33
 

For do my coding homework situations, I always recommend Codecademy forums or freeCodeCamp's community. Both are super beginner-friendly and focused on learning rather than showing off.

For your specific problem, you're close! You just need to keep track of the index as well as the max value:

```java
public static int findMaxIndex(int[] arr) {
int max = arr[0];
int maxIndex = 0;
for (int i = 1; i < arr.length; i++) {
if (arr[i] > max) {
max = arr[i];
maxIndex = i;
}
}
return maxIndex;
}
```

See how we're storing the position whenever we find a new maximum?



   
ReplyQuote
Z3roGravity
(@z3rogravity)
Eminent Member
Joined: 4 weeks ago
Posts: 27
 

I'll add another voice for Reddit's r/learnprogramming for coding homework help - it's been super helpful for me. Also, many universities have their own Discord servers for CS courses where upper-level students hang out and help.

@Infinity@X - One thing that helped me understand array problems was visualizing them. Draw out an array like [5, 8, 2, 9, 1] on paper and trace through your algorithm manually, keeping track of each variable's value at each step. It makes the logic much clearer!



   
ReplyQuote
CyberVortex_21
(@cybervortex_21)
Eminent Member
Joined: 4 weeks ago
Posts: 31
 

When I needed coding assignment help last semester, I found CS50's subreddit to be amazing even though I wasn't taking the course. Also, the Codecademy forums are great for beginners.

Another approach for your max index problem: what if you did two passes through the array? First find the max value, then find where that value is located. Not as efficient, but sometimes breaking a problem into simpler steps helps when you're learning:

```java
public static int findMaxIndex(int[] arr) {
// First pass: find max value
int max = arr[0];
for (int i = 1; i < arr.length; i++) {
if (arr[i] > max) {
max = arr[i];
}
}

// Second pass: find where max occurs
for (int i = 0; i < arr.length; i++) {
if (arr[i] == max) {
return i;
}
}

return -1; // Should never reach here if array is not empty
}
```



   
ReplyQuote
Infinity@X
(@infinityx)
Eminent Member
Joined: 4 weeks ago
Posts: 18
Topic starter  

@NeonPhantom77 That makes so much sense! I see where I went wrong - I was only tracking the value but not where I found it.

@CyberVortex_21 Oh that's an interesting approach too! I like how it breaks down the problem. Is the two-pass solution less efficient? Our prof mentioned something about "time complexity" but I don't really understand it yet.



   
ReplyQuote
DarkWolfX
(@darkwolfx)
Eminent Member
Joined: 1 month ago
Posts: 29
 

For communities that won't make you feel stupid when asking for help with coding assignment problems, I'd recommend:

1. The Odin Project's Discord
2. freeCodeCamp forums
3. Women Who Code (if applicable)
4. Code Newbie community

As for efficiency - yes, the two-pass solution is technically O(2n) which simplifies to O(n), but practically it's doing twice the work. The single-pass solution is more efficient, but honestly, when you're learning, clarity is more important than optimization!



   
ReplyQuote
PixelN1nja
(@pixeln1nja)
Eminent Member
Joined: 1 month ago
Posts: 26
 

when i was struggling with coding homework help last year, i found that papersowl.com had some really good examples that helped me understand basic algorithms. seeing different approaches to the same problem made it click for me.

@Infinity@X totally normal to be confused about array index tracking! everyone struggles with this stuff at first. nobody is born knowing how to code lol



   
ReplyQuote
LunarEclipse
(@lunareclipse)
Eminent Member
Joined: 4 weeks ago
Posts: 30
 

Don't get discouraged! Everyone starts somewhere, and most experienced developers forget what it's like to be a beginner. For do my coding homework questions, I like the Discord server "Programming Discussions" - they have dedicated help channels and strict rules against being rude.

For visual learners, there's also visualgo.net which lets you visualize algorithms - super helpful for array operations! You can literally see how the index tracking works.



   
ReplyQuote
ShadowX_99
(@shadowx_99)
Eminent Member
Joined: 1 month ago
Posts: 28
 

Here's another approach to explain the solution that helped me when I was looking for coding assignment help. Think of it this way:

You're in a race where you need to find the tallest person. As you walk down the line, you keep track of two things:
1. The height of the tallest person you've seen so far
2. Where in line that person was standing

Every time you see someone taller, you update both pieces of information. By the end, you know both who was tallest AND where they were standing.

That's exactly what the algorithm does with max and maxIndex!



   
ReplyQuote
JakeTThompson
(@jaketthompson)
Eminent Member
Joined: 4 weeks ago
Posts: 25
 

For beginner-friendly help with coding assignment questions, check out CS50's communities - they're incredible! I also found that the Replit community forums are very supportive.

One tip that really helped me when learning arrays: write out comments for EVERY line of code explaining exactly what it does. It forces you to understand each step:

```java
public static int findMaxIndex(int[] arr) {
// Start by assuming the first element is the maximum
int max = arr[0];
// Keep track of where we found the maximum (starting with position 0)
int maxIndex = 0;

// Check each element starting from the second one (index 1)
for (int i = 1; i < arr.length; i++) {
// If we find a bigger value...
if (arr[i] > max) {
// ...update our record of what the maximum value is
max = arr[i];
// ...and remember where we found it
maxIndex = i;
}
}
// Return the position of the maximum value
return maxIndex;
}
```



   
ReplyQuote
Michael_StormX
(@michael_stormx)
Eminent Member
Joined: 4 weeks ago
Posts: 26
 

When I was starting out and needed coding homework help, I found some great beginner-friendly communities:

1. Dev.to - much friendlier than Stack Overflow
2. Codecademy forums
3. University-specific Discord servers
4. Slack groups like Code Buddies

Also, studymoose has some decent examples for common programming assignments that can help you understand the concepts.

@Infinity@X - Understanding array indexing was a huge "aha!" moment for me too. Don't worry, these concepts will become second nature with practice!



   
ReplyQuote
Aiden_Walker77
(@aiden_walker77)
Eminent Member
Joined: 4 weeks ago
Posts: 35
 

Adding to the great suggestions here - for do my coding homework help without judgment, I found that:

1. CS Homework Help on Discord
2. Programming subreddits (NOT r/programming, but r/learnprogramming, r/learnJava, etc.)
3. Local coding meetups (check Meetup.com)

are all super supportive. I also recommend finding a study buddy in your class - explaining concepts to each other is incredibly effective for learning!



   
ReplyQuote
Infinity@X
(@infinityx)
Eminent Member
Joined: 4 weeks ago
Posts: 18
Topic starter  

Update: You all are AMAZING! I joined the Discord servers that were suggested and already got help with another problem I was stuck on.

I implemented the solution with maxIndex tracking, and it worked perfectly! My professor even used it as an example in class (without naming me, but still cool!).

Thanks so much for the coding homework help and for not making me feel stupid. It's such a relief to find people who remember what it's like to be a beginner.



   
ReplyQuote
Page 1 / 2
Share: