Category : java

You are given an array array of n elements of positive integers. Your task is to determine the minimum absolute difference between any 2 elements of the array. You can perform the following two types of operations on the array elements any number of times: If element e is even, then you can replace it ..

Read more

I’m trying to run a native method that I created but when I try and run my main method I get this error and I’ve got no clue how to fix it, I 100% know my shared library is being loaded. Exception in thread "main" java.lang.UnsatisfiedLinkError: Main.C.C.change(II)J at Main.C.C.change(Native Method) at Main.C.C.main(C.java:16) Here are all ..

Read more

Tom has taken a contract for construction to achieve a (N) number of work. Tom can construct (C) number of work in the morning, Jerry destroys (D) number of work in the evening.  For each of (T) test cases, calculate the days of work Tom can utilize to complete the work to achieve (N) works. Constraints: ..

Read more