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
| # Enter your code here. Read input from STDIN. Print output to STDOUT | |
| class Node: | |
| def __init__(self,value,point): | |
| self.value = value | |
| self.point = point | |
| self.parent = None | |
| self.H = 0 | |
| self.G = 0 | |
| def move_cost(self,other): | |
| return 0 if self.value == '.' else 1 |
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 <stdio.h> | |
| #include <string.h> | |
| int main(int argc, char const *argv[]) { | |
| char read[10]; | |
| char ar[5], ar1[5], ar2[5]; | |
| // ar = "", ar1 = "", ar2 = ""; | |
| ar[5] = 0; | |
| ar1[5] = 0; | |
| ar2[5] = 0; |
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
| #!/bin/sh | |
| for i in C Java Python | |
| do | |
| mkdir "$i" | |
| cd "$i/" | |
| for j in HeapSort MergeSort SelectionSort InsertionSort QuickSort RadixSort | |
| do | |
| mkdir "$j" | |
| done | |
| cd .. |
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 os | |
| files = os.listdir() | |
| for f in files: | |
| og = f | |
| f = f.replace('[TorrentCouch.com].', '') | |
| .replace('.720p.', '') | |
| .replace('.720p.', '') | |
| .replace('WEB-DL.x264', '') |
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
| int bits[10] = { | |
| 0x3f, // 0 | |
| 0x06, // 1 | |
| 0x5b, // 2 | |
| 0x4f, // 3 | |
| 0x66, // 4 | |
| 0x6d, // 5 | |
| 0x7d, // 6 | |
| 0x07, // 7 | |
| 0x7f, // 8 |