Skip to content

Instantly share code, notes, and snippets.

@xnull
Created October 7, 2021 04:34
Show Gist options
  • Save xnull/2c6db5917c95efa5edc1bfaa4c52de9c to your computer and use it in GitHub Desktop.
Save xnull/2c6db5917c95efa5edc1bfaa4c52de9c to your computer and use it in GitHub Desktop.
class Main {
Tablitsa tabl = new Tablitsa();
int find(int i, int j){
return tabl.getRecord(i).getColumn(j);
}
}
class Tablitsa {
List<Record> records = new ArrayList<>();
Record getRecord(int recordId) {
return records.get(recordId);
}
}
class Record {
List<Integer> columns = new ArrayList<>();
int getColumn(int col) {
return columns.get(col);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment