This file contains hidden or 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" | |
import "strconv" | |
func main() { | |
var cities = [4][4]int { | |
{0, 2, 5, 7} , // a b c d | |
{2, 0, 8, 3} , // b |
This file contains hidden or 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
... | |
<dependencies> | |
<!-- https://mvnrepository.com/artifact/com.sun.xml.rpc/jaxrpc-impl --> | |
<dependency> | |
<groupId>com.sun.xml.rpc</groupId> | |
<artifactId>jaxrpc-impl</artifactId> | |
<version>1.1.5</version> | |
</dependency> | |
</dependencies> |
This file contains hidden or 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
{ | |
"name":"Muhammad Li", | |
"message":"Hello World", | |
"age":45, | |
"weight_kg":82, | |
"height_cm":188 | |
} |
This file contains hidden or 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
"aa",<SCORE OF aa> | |
"bb",<SCORE OF bb> | |
"cc",<SCORE OF cc> | |
"dd",<SCORE OF dd> |
This file contains hidden or 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
... | |
Jedis j; | |
j.connect(); | |
/* | |
*using NX parameter on ZADD command -> ADD IF NOT EXISTS -> UNIQUE | |
*using Timestamp as score -> always increasing -> always MAX score -> Like RPUSH on a list |
NewerOlder