Thinking about it, would you even need anything besides interrupt related stuff?
/dpt/ - Daily Programming Thread
In Matlab, I'm trying to add values to a vector A if a certain condition is met. It almost works, but if the condition is NOT met, it pushes a 0 to the end of the vector. I don't want that, I only want it to push the value if the condition IS met. Help?
My code looks something like:
>x = 0:1:100
>if f(x) > 0: A(end + 1) = x
Radix sort (linear time, in-place).
Do binary search for k/2 and k.
Yield all combinations of numbers below k/2.
Then iterate upwards for e in array between k/2 and k, yield everything below k - e starting from the front.
The total cost is O(n) + O(number of solutions)
java is unironically comfy desu
e.g. separated signatures and implementations in adhoc polymorphic functions - if I remember correctly there is no clear definition in the standard that specifies what happens if there are multiple functions with the same name and arity if they all have separated signatures.
So I noticed that IntelliJ will just import java.util.* if you have it automatically handle imports in a class where you use 6 or more classes from java.util
Not sure how I feel about this.
this would fail the sample input. It would give 2,2 which is not correct.
pairsWithSum xs total = nub [(min (xs !! i) (xs !! j), max (xs !! i) (xs !! j)) | i
Gnome Builder is literally broken out of the box. Running a simple hello world python script is impossible.
What the fuck.
It's not just java.util. but any common package with multiple classes in one.
I think you can hover and undo that though, or turn it off in an IDE setting.
I less and less would because of their politics.