Code Mafia: Interest Gauge.
-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
Interested. Would pre-in if I could.There's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
NO CODES IN MAFIA GAMES
But honestly this shouldn't be too difficult to write a simple program to calculate. Do we send in like a pastebin of our algo or...?There's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
What's stopping someone from manually counting the brackets?There's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
My attempt at the parenthesis problem(written in Python)
Code: Select all
def main(code): for all element in code: floor = 0 if element = "(": floor += 1 elsif element = ")": floor -= 1 else: print "Invalid character! \n" return floor print main(*) * indicates where you should copypaste the encoded text.
There's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
In my defense i wrote the damn thing on mobile while waiting for my lecture to begin.
Kagami is correct, floor = 0 has to be outside the loop. TSQ and FA are correct, it has to be ==.
No idea about is but I prefer ==There's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
Shamelessly stolen from the internet
Given an array length 1 or more of ints, return the difference between the largest and smallest values in the array.
Bonus points: don't use min() or max()There's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
Clarification: Answer above should be written as a defined function, called using an array length of one or more in its parameters.There's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
Code: Select all
def find_diff(array) >largest = 0 >smallest = 0 >>for x in array: >>>if x > largest: >>>>largest = x >>>elseif x < smallest: >>>>smallest = x >>>else: >>>>print "You fucked up! Try again!" >return largest - smallest
Another attempt at coding on mobile. Using > because tapping space four times messes with my head.There's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
I want a mish mash coding challengeThere's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
If TSQ wont post it then I willThere's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
ripThere's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.-
-
Accountant Jack of All Trades
- Jack of All Trades
- Jack of All Trades
- Posts: 6419
- Joined: May 16, 2015
- Location: Wonderland
That's some ugly ass codeThere's nothing that says that a fake can't beat the real thing.
You must not imagine that for beings like you and us there can be laughter. The low men laugh, and we envy them. But for us, the higher ones, there is no laughter, only an unending vigil, purely serious, stretching on into the night.
Copyright © MafiaScum. All rights reserved.