Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Definition for a binary tree node. | |
* public class TreeNode { | |
* int val; | |
* TreeNode left; | |
* TreeNode right; | |
* TreeNode() {} | |
* TreeNode(int val) { this.val = val; } | |
* TreeNode(int val, TreeNode left, TreeNode right) { | |
* this.val = val; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aflah@LAPTOP- /mnt/c/Users/ASUS/Desktop/CO_M21_Assignment/automatedTesting master ./run --verbose | |
================================================== | |
================ TESTING ASSEMBLER =============== | |
================================================== | |
Runing simple tests | |
Mismatch at line 1. | |
Mismatch at line 2. | |
Mismatch at line 3. | |
Mismatch at line 4. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extra test cases by legend | |
#1 | |
var a | |
st R1 a | |
hlt | |
#2 | |
var a | |
st R1 abc | |
hlt | |
#3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00000000 0000000000110010 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 | |
00000001 0000000000110010 0000000000010100 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 | |
00000010 0000000000110010 0000000000010100 0000000000100001 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 | |
00000011 0000000000110010 0000000000010100 0000000000100001 0000000000001010 0000000000000000 0000000000000000 0000000000000000 0000000000000000 | |
00000100 0000000000110010 0000000000010100 0000000000100001 0000000000001010 0000000011111111 0000000000000000 0000000000000000 0000000000000000 | |
00000101 0000000000110010 0000000000010100 0000000000100001 0000000000001010 0000000011111111 0000000011111111 0000000000000000 0000000000000000 | |
00000110 0000000000110010 0000000000010100 0000000000100001 0000000000001010 0000000011111111 0000000011111111 0000000001100100 0000000000000000 | |
00000111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 | |
00000001 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 | |
00000100 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 | |
00000101 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 | |
00000110 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 | |
0000000001010011 | |
0111100000000100 | |
0000000000101010 | |
0010100000000111 | |
0000000001010011 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.io.PrintWriter; | |
import java.util.StringTokenizer; | |
public class Template { | |
static BufferedReader br; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
Animal A1 = new elephant("elephant 1"); | |
Animal A2 = new elephant("elephant 2"); | |
A1.eat(); | |
A1.dance(A2); | |
} | |
} | |
interface Animal { | |
public void eat(); |