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
class Solution { | |
public: | |
int mySqrt(int x) { | |
int min = 0; | |
int max = 46340; | |
while (min < max) { | |
const int mid = (min + max) >> 1; | |
const int s = mid * mid; | |
if (s > x) { | |
max = mid-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
package main | |
import ( | |
"encoding/binary" | |
"fmt" | |
"log" | |
stdlog "log" | |
"math/rand" | |
"net" | |
"os" |
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
import * as fs from "node:fs/promises"; | |
import * as path from "node:path"; | |
const locale = "ru"; | |
const specHead = /^## (?:Specifications|Specification|Характеристики|Спецификации|Спецификация)$/m; | |
const specTail = /^##/m; // next heading | |
const specName = /\{\{\s*SpecName/i; | |
const Specifications = /\{\{\s*Specifications/i; |
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
import * as fs from "node:fs/promises"; | |
import * as path from "node:path"; | |
const locale = "pt-br"; | |
const specHead = | |
/^#+ (?:Specifications?|Especifcações|Espeficicações|Expecificações|Especificaçōes)$/im; | |
const specTail = /^##/m; // next heading | |
const specName = /\{\{\s*Spec[^i]/i; | |
const Specifications = /\{\{\s*Specifications/i; |
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" | |
"net" | |
"os" | |
"syscall" | |
"time" | |
"github.com/jsimonetti/rtnetlink" |
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 ( | |
"bufio" | |
"bytes" | |
"flag" | |
"fmt" | |
"io/fs" | |
"net/http" | |
"os" |
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" | |
"net" | |
"net/http" | |
"strings" | |
) | |
type mux struct { |
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
acm.org, | |
adobe.com, | |
aspnetcdn.com, | |
azureedge.net, | |
beego.me, | |
bing.com, | |
caomeikeyan.com, | |
cn.download.nvidia.com, | |
debian.org, | |
elsevier.com, |