This file contains hidden or 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
| #include <iostream> | |
| #include <cstdio> | |
| using namespace std; | |
| struct ListNode | |
| { | |
| int data; | |
| string name; | |
| string grade; |
This file contains hidden or 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
| #include <iostream> | |
| using namespace std; | |
| struct ListNode | |
| { | |
| int data; | |
| ListNode *next; | |
| }; |
This file contains hidden or 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
| .model small | |
| .stack 100h | |
| .data | |
| countOne db ? | |
| countZero db ? | |
| nln db 0ah,0dh,'$' | |
| msg1 db 'Number of Ones: $' | |
| msg2 db 0ah,0dh,'Number of Twos: $' | |
| .code | |
| main proc |
This file contains hidden or 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
| #include <iostream> | |
| using namespace std; | |
| struct ListNode | |
| { | |
| int data; | |
| ListNode *next; | |
| ListNode *prev; | |
| }; |
This file contains hidden or 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
| select customer.customer_name,customer.customer_street,borrower.loan_number | |
| from customer,borrower where customer.customer_name=borrower.customer_name; | |
| select customer.customer_name,customer.customer_city,loan.amount from customer,borrower,loan where customer.customer_name = borrower.customer_name and borrower.loan_number=loan.loan_number; | |
| select customer.customer_name,loan.amount from customer,borrower,loan where customer.customer_name = borrower.customer_name and borrower.loan_number=loan.loan_number and loan.amount between 1000 and 2500; | |
This file contains hidden or 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
| 1) | |
| SELECT E.EMPNO, E.ENAME, D.LOC, E.SAL, D.DNAME, D.LOC FROM EMP E, DEPT D | |
| WHERE E.DEPTNO = D.DEPTNO AND D.DEPTNO=(SELECT DEPTNO FROM EMP WHERE ENAME = 'SCOTT') AND ENAME <> 'SCOTT'; | |
| 2) | |
| SELECT E.ENAME, E.JOB, E.SAL, S.GRADE, D.DNAME FROM EMP E, DEPT D, SALGRADE S | |
| WHERE E.DEPTNO = D.DEPTNO AND E.JOB <> 'ANALYST' | |
| AND D.DNAME = 'RESEARCH' |
This file contains hidden or 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
| #include <iostream> | |
| #include <vector> | |
| #include <iomanip> | |
| using namespace std; | |
| struct myInt | |
| { | |
| int num; |
This file contains hidden or 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
| #include <iostream> | |
| #include <vector> | |
| using namespace std; | |
| struct treeNode { | |
| int data; | |
| treeNode *left, *right; | |
| }; |
This file contains hidden or 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
| .model small | |
| .stack 100h | |
| .data | |
| a db 'a$' | |
| .code | |
| main proc | |
| mov bl,5 |
This file contains hidden or 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
| .model small | |
| .stack 100h | |
| .data | |
| a db 'a$' | |
| .code | |
| main proc | |
| call magic |