Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
15

WEEKLY CHALLENGES #1

TheDrone7
TheDrone7

Hello all replers! Today, I'm going to be announcing something new and fun for you all. We're introducing WEEKLY CHALLENGES!.

So, what are these weekly challenges? These are small beginner-friendly programming problems for the community to solve. We will be posting one of these every week. After 1 week of posting the challenge, we'll stop accepting any answers for the current challenge and post a new one, (although, you can still solve these for fun or just to learn something new).

And, what's in it for me? We will grade your submissions for each challenge you attempt. By the end of the month, the person to have the highest total score will be awarded 1 month of free hacker plan!!

HOW DO I SUBMIT? You can submit your answers by sharing the repls to the share board of repl talk and ensure that the name of the post contains #WEEKLY (in all caps, this will help us filter your submissions).

Now that all the introductions are done, let's get to the point, i.e. this week's weekly challenge!


Multiplication!


For this week's weekly challenge, you will need to write a program that multiplies 2 numbers. BUT, there's a twist. You are NOT ALLOWED to use the multiplication operator (*) or loops(for, while or any other that your prefered language may support, goto also counts as a loop). You cannot use any external libraries and anything else is allowed.

QUICK NOTE : Since these challenges are very easy, this should be obvious but we will not only be judging your output but also your code. The actual marking scheme will remain hidden though.

3 years ago

Voters

Comments

TopNew
5
KobeFF
KobeFF

In LOLCODE can you use the PRODUCKT function?

3 years ago
1
Lord_Poseidon
Lord_Poseidon

do recursive functions count as loops?

3 years ago
1
TheDrone7
TheDrone7

No, they don't. @Lord_Poseidon

3 years ago
1
Lord_Poseidon
Lord_Poseidon

@TheDrone7
YEET. I already cooked up a dumb method involving map, strings, lists and binary arithmetic. Are multiple submissions allowed?

3 years ago
1
TheDrone7
TheDrone7

No @Lord_Poseidon only submit the one you think will score the most.

3 years ago
1
Lord_Poseidon
Lord_Poseidon

without even knowing how code is judged? This is sad :(

3 years ago
1
AtriDey
AtriDey

Can I use automation plugins? Not a math plugin, but a mouse mover.

3 years ago
1
Coder100
Coder100

lol what do you need a mouse for XD
pyautogui doesn't work on repl.it :(

@AtriDey

3 years ago
1
AtriDey
AtriDey

@Coder100
autopy works without a hitch.

3 years ago
1
JackFly26
JackFly26

if i do it in brainf can i use loops

3 years ago
1
AtriDey
AtriDey

So there can be no loops in a code file (py, cpp, js, etc)
And does the math have to be done in the program?
CMON CODEMONKEY TOOK MY IDEA I NEED A LOOPHOLE NOW!

3 years ago
1
NoelB33
NoelB33

Well, he never said it has to be done in a code file...

@AtriDey

3 years ago
1
ABDOABDO11
ABDOABDO11

const multiply=require("multiplier");
function multiple(num1, num2){
return multiply(num1, num2);

}
console.log(multiple(5, 5))

3 years ago
1
ChezCoder
ChezCoder

will python chr() and eval() work?

3 years ago
1
eartharoid
eartharoid

https://repl.it/@eartharoid/WEEKLY-1
not sure if an interval counts as a loop
probably a terrible way to do it, but it works. :)

3 years ago
1
DynamicSquid
DynamicSquid

Quick question, can I use for_each()? Not to multiply the number directly, but it's for a list

3 years ago
1
Load more