Posts: 15351
Threads: 118
Joined: January 13, 2014
Reputation:
117
RE: Here's a simple programming problem for you to solve
April 28, 2016 at 9:20 am
Not what I get, you must have changed the code.
Input the string:
AB
Input an integer:
2
There are 4 string combinations.
String Combinations:
AA
AB
BA
BB
"There remain four irreducible objections to religious faith: that it wholly misrepresents the origins of man and the cosmos, that because of this original error it manages to combine the maximum servility with the maximum of solipsism, that it is both the result and the cause of dangerous sexual repression, and that it is ultimately grounded on wish-thinking." ~Christopher Hitchens, god is not Great
PM me your email address to join the Slack chat! I'll give you a taco(or five) if you join! --->There's an app and everything!<---
Posts: 15351
Threads: 118
Joined: January 13, 2014
Reputation:
117
RE: Here's a simple programming problem for you to solve
April 28, 2016 at 9:25 am
My code literally cannot write a number of the characters in the first slot that isn't a power of the length of the inputted string. IOW, there's no way it writes 3 A's as the first character with a string length of two.
I don't know how you fucked that up, pool, but don't change my code and then tell me it doesn't work. Anyone can follow the short url and input for themselves.
"There remain four irreducible objections to religious faith: that it wholly misrepresents the origins of man and the cosmos, that because of this original error it manages to combine the maximum servility with the maximum of solipsism, that it is both the result and the cause of dangerous sexual repression, and that it is ultimately grounded on wish-thinking." ~Christopher Hitchens, god is not Great
PM me your email address to join the Slack chat! I'll give you a taco(or five) if you join! --->There's an app and everything!<---
Posts: 5356
Threads: 178
Joined: June 28, 2015
Reputation:
35
RE: Here's a simple programming problem for you to solve
April 28, 2016 at 9:36 am
Ok I ran it from my computer and it works. I'm devastated.
Posts: 5356
Threads: 178
Joined: June 28, 2015
Reputation:
35
RE: Here's a simple programming problem for you to solve
April 28, 2016 at 9:39 am
I'm not going to rest until I come up with my own solution now. You big meanies. I hate you all. You too Benny.
Posts: 5356
Threads: 178
Joined: June 28, 2015
Reputation:
35
RE: Here's a simple programming problem for you to solve
April 28, 2016 at 10:02 am
In case someone missed it, i hate you is code for i love you you genius motherfucker.