We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DOCS
1 parent e737dc5 commit 86f0c91Copy full SHA for 86f0c91
src/PracticeAlgorithms.java
@@ -94,6 +94,9 @@ public static void printTwoDmIntArray(int[][] theArray) {
94
}
95
96
97
+ /**
98
+ * static method to print the formatted contents of an int array
99
+ * */
100
public static void printIntArray(int[] theArray) {
101
for (int item : theArray) {
102
System.out.printf("%d ", item);
@@ -140,6 +143,7 @@ public static long fact(int N) {
140
143
return N * fact(N - 1);
141
144
142
145
146
+
147
/**
148
* static method that calls rank to binary search for "key"
149
* */
@@ -164,6 +168,7 @@ private static int rank(int key, int[] array, int minIndex, int maxIndex) {
164
168
return rank(key, array, minIndex, maxIndex - 1);
165
169
166
170
171
167
172
173
* static method to brute force search for a "key" in an int array
174
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments