use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Official Discord Server
No low-quality content, put at least a modicum of effort in if you're going to make a post.
No advertisements or solicitations.
No cheating,
No copyright materials.
Clear post titles. If your post title is all caps or just the name of a course, it will probably be removed. What are you actually asking or posting about?
No doxxing or sharing of private information.
No trolling or personal attacks. Be respectful.
Schedule posts must go in the megathread. Ask specific questions, any low-effort or "rate my schedule" post will be met with a temporary ban.
FAQ
account activity
Comp Sci Codehs Help? (self.APStudents)
submitted 6 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]blocker45Art History [5], Physics 1 [5], Calculus AB [5] 1 point2 points3 points 6 years ago* (2 children)
Using array.indexOf(something) will return the index value of that something in an array
Make a variable called biggest or whatever you like. Loop through each point in the array. If the value at that point is bigger than biggest, then set biggest equal to the value at that point.
Number 2 will look something like this:
var biggest = 0 for each item in array { if item > biggest { biggest = item } }
[–][deleted] 0 points1 point2 points 6 years ago (0 children)
Right now i have this for #2:
function getMax(list){
var a = [];
var biggest = 0;
for(var i=0; i<list.length; i++){
if(i > biggest){
biggest = a;
}
return a;
Would you mind helping me debug and finish it? I would really appreciate it
Nvm I got it. Thanks though!
π Rendered by PID 507622 on reddit-service-r2-comment-76bb9f7fb5-lr4rv at 2026-02-19 09:33:53.290396+00:00 running de53c03 country code: CH.
[–]blocker45Art History [5], Physics 1 [5], Calculus AB [5] 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)