« first day (3585 days earlier)      last day (1251 days later) » 

1:07 AM
0
Q: Python Elementary program problem

Mad SpacesI am just getting into programing, i am trying to program in python a program that gives me back if the number i put in is divisible by 2 or 3. problem is, everytime i insert number, python gives me the last message of (its not number!) a=input("number: ") if type(a)==int: if a%2==0 and a%3==...

 
 
4 hours later…
4:51 AM
-1
Q: O Complexity with nlogn

Ashraf Yawargiven an unsorted array and a number, N find pairs of numbers in the array such that the sum of the pairs is equal to N with the complexity of NlogN. is it even possible to find such a thing in an unsorted array with a complexity of nlogn? I know we can find if the array is sorted but with an uns...

 
5:28 AM
@RedwolfPrograms welcome to the club!
@rak1507 nothing on SEDE?
 
 
4 hours later…
9:50 AM
0
Q: golf wrap-around assignments

John RivieraThis is a relatively simple question. I'm trying to golf a Snake game I've written, and I'm trying to work out if there's a way to golf the following conditional assignments which control x and y coordinates of the snake ensuring a wrap around of the play area: if (P<0) { P = T-1; } if (P>T-1) ...

0
Q: Amazon Interview Question and Doing as fast as we can?

user355834I see a nice, hard, interview question recently. some algorithm was found on Quora, SO, CS but non of them is complete. The Amazon interview question is as follows: suppose we are given a two dimensional array A[1 ..m][1 .. n] in which every row A[i][ ] is sorted, and an integer k. Describe an a...

 
 
3 hours later…
1:03 PM
Hi everyone
anyone who wants to help with deciding who wins what in the best of 2019 thing please join here: chat.stackexchange.com/rooms/116521/best-of-2019
 
1:58 PM
-1
Q: Addition of 2 numbers without semicolons

SummerHow do I add two numbers together in C++ without using any semicolons?

 
 
3 hours later…
4:38 PM
can you be awarded for language of the month bounty for an answer that doesn't even beat an existing answer in that language to that question?
 
4:55 PM
probably
it's still a lotm answer
as long as there's no bubbler answer to it
 
 
3 hours later…
7:47 PM
-3
Q: resolving low graphics issues in matlab

T.CIm trying to solve PDE in Matlab and after a few weeks of running the graph plotting, Matlab hit me up with a notice about low graphic issues and since then it couldn't plot the graphics the same, i tried everything their website said, and it doesn't work , can anyone help me?

 
8:01 PM
 
@Neil Ngl, I expected that question to stay unanswered
Although it looks like the final test case gives 108 instead of 106?
 
ugh, seriously?
need to eat now, might remember to check back later
 
9:05 PM
ugh, I didn't see that caveat
oh well, looks like that question's back to 0 answers then
 

« first day (3585 days earlier)      last day (1251 days later) »