問題文を熟読し、スキーマ/アプリをざっくり把握! SQL 使ってるとこ抜き出しとかしてもいいかもね。
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
defmodule MergeSort do | |
def sort(list) do | |
do_sort(list, 0, length(list)) | |
end | |
defp do_sort(list, left, right) when right - left == 1 do | |
Enum.slice(list, left..(right - 1)) | |
end | |
defp do_sort(list, left, right) do |
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
defmodule Quiz do | |
@moduledoc """ | |
Documentation for Quiz. | |
""" | |
@doc """ | |
Search treasure!!! | |
## Examples |
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
javascript:void function(){document.body.appendChild(document.createElement("script")).src="//comets.nabettu.com/presenter/script.js";document.body.appendChild(document.createElement("script")).appendChild(document.createTextNode("let count = -1;setTimeout(() => {$(document).on('animationstart', '.comment',function(){count++;$('.status').text(`コメント数 ${count}`)})},2000)"));document.body.appendChild(document.createElement("style")).appendChild(document.createTextNode(".status{font-size: 32px !important;}"));}(); |
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 ( | |
"errors" | |
"flag" | |
"fmt" | |
"os" | |
) | |
var ( |
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 ( | |
"fmt" | |
"sort" | |
) | |
type User struct { | |
Name string | |
Age int |
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 ( | |
"log" | |
"os" | |
"text/template" | |
"time" | |
) | |
func main() { |
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 add | |
// Add add two integer | |
func Add(a int, b int) int { | |
return a + b | |
} |
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 ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
// type app struct { | |
// Name string |
NewerOlder