I am up for anything
GIve me your programming challenges
Write a program that determines if another program will ever print "hello".
install gentoo
Print the first nth digit of e
Given an array of integer, find the largest sum of contiguous integer.
No.
write a program to determine the likelihood of the world ending from nuclear hellfire
def largest_sum(arr):
max_so_far, max_ending_here = 0,0
for i in arr:
max_ending_here = max_ending_here + i
if max_ending_here < 0:
max_ending_here = 0
if max_so_far < max_ending_here:
max_so_far = max_ending_here
return max_so_far
>write a program to determine the likelihood of the world ending from nuclear hellfire
That's 100% if Trump wins the next election
Sort an array of distinct integers in less than O(n*logn)
write an implementation of a templated class in c++ that functions as arbitrary coefficients in a polynomial (degree given at construction).
Overload all the arithmetic operators for it in an algebraically correct way.
Possible if there is a limit of max value of integers
polynomial with templated coefficients*
assume 32 bit signed integer
Create a program that finds a name in a group of names in a maximum of 4 iterations.
How could someone be this dumb?
function boolean findName(List names, String tofind){
for(String name : names){
if(name.equals(tofind))
return true
}
return false
}
how would you ever need 4 iterations over the list to find one value?
Calculate the biggest dragon dildo I can fit in my ass.
I know right? They let anybody to be a President these days
Write a script that logs into your bank account and transfers all the money to me.
I betcha can't.
def count_sort(arr):
val = max(arr)
count = [0]*(val+1)
for i in arr:
count[i]+=1
out = [0]*len(arr)
j = 0
for i in range(val+1):
while count[i]!=0:
out[j] = i
j+=1
count[i]-=1
arr = out[::]
return arr
Write a program that creates sites where the public can rate the core truth of any article & track the credibility score over time of each journalist, editor & publication.
Oh i like this
cant solve the HALT Problem
make syntactically invalid C++ declaration
A good observable and concurrent set collection.
laughed audibly, have a (you)
Being this retarded
How could I start with something like this? Is there an article database or would I have to manually scrape everything on different sites and when they change it change it accordingly?
checked...bitch.
find a valid businesscase for blockchain
PROGRAM ANYTHING 100% NORMIE PROOF
I DARE YOU
Write a program that determines if you are a faggot or not. Have it return True for all inputs. Thanks user.
But dwarf fortress already exists...
I mean something that no normie ever could break in his absolute retardation
but python scripts already exist...
Given a set of integers, determine two non-empty subsets whose sums are equal to each other
./your-program | grep hello
Get Help
Write a program that can reverse SHA256 without brute forcing it.
Use a real editor
Make hurd a viable option
Write a kernal better than linux
it's called windows, look it up
Create the grounds for a very detailed shitposting bot.
Create a program that copy pastes Jow Forums archives and non-official archives and randomly posts threads and mixes threads at random intervals of times.
Make it so it simulates a living breathing community on an imageboard.
Fuck off
>>He doesnt know
Where do you think this thread comes from?
Create a VST that sounds smooth
reverse mode automatic differentiation in your language of choice
average 2 ints in C
>implying the "public" won't be 80% of the media themselves
foolproof system
then I'll vote for him even harder.
Find the last prime number
that's actually a nice idea.
You'd need a lot of users though or else you'll just create an echo chamber.
>That's 100% if Trump wins the next election
How do you even figure?
Have you not noticed that none of the chicken little scenarios you guys were mindlessly saying have come true?
I wrote this earlier but hadn't had a chance to post it yet.
#include
#include
int digit_count(int number) {
int digits;
while (number) {
number /= 10;
digits++;
}
return digits;
}
/* x and y are the current indices, while n, m, a and b
* are decremented and incremented respectively
* to force the spiral towards the center.
*/
void inward_spiral(int n, int m) {
int pattern[m][n];
int x = 0, y = 0, a = 0, b = 0;
int counter = 1;
int max = n*m;
int orig_n = n, orig_m = m;
int digits = digit_count(max);
while (counter r */
while (x
better to use data science to rate things on objectivity
truth is a hard metric to establish
zing
Write an OS
take your pick
Make a program that calculates how many dicks you suck per second.