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
function sym() { | |
//return symmetric difference for two arrays | |
const getSym = (x,y) => { | |
x = [...new Set(x)].sort((a, b) => a - b); | |
y = [...new Set(y)].sort((a, b) => a - b); | |
const xLength = x.length; | |
const yLength = y.length; | |
let i = 0; | |
let j = 0; | |
let result = []; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
.container{ | |
display: flex; | |
height:500px; |
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
''' | |
amr,ali,abeer,nabil = 5,99,11,20 | |
amr,ali = ali,amr #swap | |
if amr == 99: | |
print("bal7") | |
else: | |
print("gamdgdn") |