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
package main | |
import ( | |
"fmt" | |
) | |
// Strategy is a strategy interface which should be implemented by | |
// the concrete strategies | |
type Strategy interface { | |
execute(p *Route) |
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 http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> | |
#main { |
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
import math | |
''' | |
p = 10009, 401, 1019 | |
q = 10039, 409, 1021 | |
''' | |
p = int(input("Nilai P: ")) | |
q = int(input("Nilai Q: ")) | |
plantext = input("Plan Text: ") | |
# n = p * q |
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
lists = [3, 5, 7, 1, 10, 8, 9, 15]; | |
tmp=0 | |
''' | |
SORTING PROCESS IS HERE | |
''' | |
for i in range(len(lists)): | |
for y in range(0, len(lists) -1): | |
if lists[y] > lists[y+1]: | |
tmp = lists[y] |
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> | |
<head> | |
<title>JS - Test</title> | |
</head> | |
<body> | |
<h3>JS - Document</h3> | |
<table> | |
<tr> | |
<th>No</th> |