Skip to content

Instantly share code, notes, and snippets.

View sahajre's full-sized avatar
🎯
Focusing

Rahul Madhav Upakare sahajre

🎯
Focusing
View GitHub Profile
package msp
func mspN1(n []int) (maxSum, mi, mj int) {
l := len(n)
if l == 0 {
return -1, -1, -1
}
maxSum = n[0]
sum := n[0]
package main
import "fmt"
func main() {
i := 42
switch i {
case 0:
fmt.Println("case 0")
case 1:
package main
import "fmt"
func main() {
i := 42
switch i {
case 1:
fmt.Print("case 1")
fallthrough
package main
import "fmt"
func main() {
i := 42
switch i {
case 0:
fmt.Print("case 0")
case 42:
package main
import "fmt"
func main() {
var flag bool
flag = true
if flag != false {
fmt.Println("Hello, 世界")
}
package main
import "fmt"
func main() {
ch := make(chan string)
go func() {
ch <- "Hello, 世界"
}()
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/", helloWorldHandler)
package main
import "fmt"
func main() {
greeting("Hello", ", ", "世", "界")
}
func greeting(h string, to ...string) {
fmt.Print(h)
package main
import "fmt"
func main() {
s := "Hello, 世界"
fmt.Println(s)
}
package main
import "fmt"
func main() {
h := "Hello"
世界 := "世界"
fmt.Println(h + ", " + 世界)
}