import com.alchemy.annotations.Complexity; import com.alchemy.annotations.Importance; import com.alchemy.annotations.LazyCompute; public class ExampleLibrary { @Complexity("O(N log N)") @Importance("HIGH") public static void sort(int[] arr) { // perform sorting } @LazyCompute public static int calculate(int a, int b) { // perform calculation } public static void main(String[] args) { int[] arr = {5, 2, 8, 1, 9}; sort(arr); int result = calculate(10, 5); System.out.println(result); } }


上一篇:
下一篇:
切换中文