Skip to content

Instantly share code, notes, and snippets.

View alixander's full-sized avatar

Alexander Wang alixander

View GitHub Profile
"""
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.
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]})
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"