Commit 9cf40a74 authored by Fokion Zervoudakis's avatar Fokion Zervoudakis

Relocate annotation. Inline variable declarations.

parent b746c58f
package annotation;
package annotation.pattern;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
......
package interview;
import annotation.Backtracking;
import annotation.pattern.Backtracking;
class MazeSolve {
static final char GOAL = 'G', OPEN = ' ', PATH = '+', WALL = '#';
......
......@@ -19,8 +19,7 @@ class InsertionSort {
@Stable
void sort(int[] A) {
for (int i = 0; i < A.length; i++) {
int n = A[i];
int j = i;
int n = A[i], j = i;
while (j > 0 && A[j - 1] > n) {
A[j] = A[j-- - 1];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment