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
""" | |
A turtle and rabbit are in a race. | |
The race is 100 meters. | |
The turtle moves 2 meters per minute. | |
The rabbit moves 5 meters per minute. | |
Right before the rabbit passes the finish line, he sleeps for half an hour. |
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
package main | |
import ( | |
"github.com/fighterlyt/permutation" | |
) | |
func formSolution(arr []int) []Solution { | |
solution := []Solution{} | |
for i := 0; i < len(arr); i += 2 { | |
solution = append(solution, Solution{arr[i], arr[i+1]}) |
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
from scrapy.spider import Spider | |
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor | |
from scrapy.selector import Selector | |
from scrapy.http import Request | |
import re | |
from spoton_challenge.items import Event_Url | |
class SpotonSpider(Spider): | |
name = "SpotonSpider" |