Adding the challenge 0101

This commit is contained in:
2026-07-19 16:56:07 +02:00
parent 57f2c755ce
commit db673f4c98
2 changed files with 54 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package db0101
type KV struct {
mem map[string][]byte
}
func (kv *KV) Open() error {
kv.mem = map[string][]byte{} // empty
return nil
}
func (kv *KV) Close() error { return nil }
func (kv *KV) Get(key []byte) (val []byte, ok bool, err error)
func (kv *KV) Set(key []byte, val []byte) (updated bool, err error)
func (kv *KV) Del(key []byte) (deleted bool, err error)
// QzBQWVJJOUhU https://trialofcode.org/