Tag

ZigZag

0 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
May 22, 2025 · Fundamentals

Understanding Protobuf Encoding: Varints, ZigZag, Embedded Messages and Best Practices

This article explains Google Protocol Buffers' binary serialization, covering its advantages and drawbacks, the encoding mechanisms of tags, varints, ZigZag, embedded and repeated fields, and provides practical best‑practice guidelines for designing robust .proto schemas.

Best PracticesGoProtobuf
0 likes · 11 min read
Understanding Protobuf Encoding: Varints, ZigZag, Embedded Messages and Best Practices
Java Tech Enthusiast
Java Tech Enthusiast
May 1, 2024 · Fundamentals

Zigzag Conversion Algorithm (LeetCode 6)

The Zigzag Conversion algorithm rearranges an input string into a Z‑shaped pattern across a specified number of rows, tracks the current row while toggling direction at the top and bottom, stores characters per row, and finally concatenates the rows to produce the transformed string, with reference implementations in C++, Java, and Python.

AlgorithmC++Java
0 likes · 9 min read
Zigzag Conversion Algorithm (LeetCode 6)