Install the OpenSSL on Debian based systems
sudo apt-get install openssl| // Declare/initialize any useful variables here, including the temporary array | |
| // to merge values into and then copy back into the parameter array. | |
| /* | |
| while the temporary array is not filled | |
| if there are no more values in the left part of a, | |
| move next value from right part of a into next index of the temporary array otherwise, if there are no more values in the right part of a, | |
| move next value from left part of a into next index of the temporary array otherwise (values in each part) compare the first value in each part | |
| move smallest value from a into next index of the temporary array |
| #include <queue> | |
| int select_digit (int number, int place) | |
| { return number/place % 10; } | |
| /* | |
| Create an array of 10 buckets, each storing an empty queue (use ArrayQueue) | |
| for every place (6 digit numbers: 1s, 10s, 100s, 1,000s, 10,000s, and 100,000s) | |
| for every value in array a |
| import random | |
| R = random.Random(42) | |
| def qsort(L): | |
| if len(L) < 2: return L | |
| i = R.randrange(len(L)) # Just some random index in the list. | |
| return qsort([x for x in L if x < L[i]]) + [x for x in L if x == L[i]] + qsort([x for x in L if x > L[i]]) |
| def mergesort(L): | |
| return L if len(L) < 2 else merge(mergesort(L[:len(L)/2]), mergesort(L[len(L)/2:])) | |
| def merge(A,B): | |
| Out = [] | |
| iA = iB = 0 | |
| while len(A)+len(B) > iA + iB: | |
| if len(B) <= iB or (len(A) > iA and A[iA] < B[iB]): | |
| Out.append(A[iA]) | |
| iA = iA + 1 |
| // Taken from CtCI-6th-Edition from @careercup | |
| public class bt_lca { | |
| /* One node of a binary tree. The data element stored is a single | |
| * character. | |
| */ | |
| public class TreeNode { | |
| public int data; |
| $ brew update | |
| $ brew install hadoop | |
| $ brew install hive | |
| $ brew install mysql |
| # Ensure that the docker engine is running | |
| docker stop $(docker ps -a -q) | |
| docker rm $(docker ps -a -q) | |
| # Clean up all images | |
| docker rm $(docker images -q) |
| ➜ iceberg git:(master) ✗ ./gradlew iceberg-core:dependencies --configuration=runtimeClasspath | |
| > Task :iceberg-core:dependencies | |
| ------------------------------------------------------------ | |
| Project ':iceberg-core' | |
| ------------------------------------------------------------ | |
| runtimeClasspath - Runtime classpath of source set 'main'. | |
| +--- project :iceberg-api |
| diff --git a/./flink/v1.14/build.gradle b/./flink/v1.15/build.gradle | |
| index a0e01c8a4..7e0b07bdc 100644 | |
| --- a/./flink/v1.14/build.gradle | |
| +++ b/./flink/v1.15/build.gradle | |
| @@ -17,8 +17,8 @@ | |
| * under the License. | |
| */ | |
| -String flinkVersion = '1.14.0' | |
| -String flinkMajorVersion = '1.14' |