![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
github.com/baixeing/treenode
The most annoying thing to do with solving leetcode's TreeNode problems is generating and displaying binary trees. This package is set of functions is designed to help solve problems with binary trees.
Example:
package main
import (
"fmt"
"github.com/baixeing/treenode"
)
func main() {
t1 := treenode.NewRandomBST(5, -10, 100, 15)
t2 := treenode.NewRandomFull(4, -10, 200)
fmt.Println(t1)
fmt.Println(t1.Invert())
fmt.Println(t2)
fmt.Println(t2.Invert())
}
╭─ 24 ─────────────────────────╮
╭─ 12 ╭───────── 61 ─────────────╮
╭───── 1 ╭───── 37 ─╮ ╭───── 89
╭─ -2 ─╮ ╭─ 31 ─╮ 39 ─╮ ╭─ 81 ─╮
-4 -1 28 34 49 73 83
╭───────────────────────── 24 ─╮
╭───────────── 61 ─────────╮ 12 ─╮
89 ─────╮ ╭─ 37 ─────╮ 1 ─────╮
╭─ 81 ─╮ ╭─ 39 ╭─ 31 ─╮ ╭─ -2 ─╮
83 73 49 34 28 -1 -4
╭─────────────── 155 ──────────────╮
╭────── 19 ──────╮ ╭───── 13 ──────╮
╭─ 48 ──╮ ╭── 46 ──╮ ╭── 64 ─╮ ╭── 74 ─╮
44 158 184 143 161 17 194 10
╭────────────── 155 ───────────────╮
╭────── 13 ─────╮ ╭────── 19 ──────╮
╭─ 74 ──╮ ╭─ 64 ──╮ ╭── 46 ──╮ ╭── 48 ─╮
10 194 17 161 143 184 158 44
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.