Tagged articles
4 articles
Page 1 of 1
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.

LeetCodePythonString
0 likes · 9 min read
Zigzag Conversion Algorithm (LeetCode 6)
Suishouji Tech Team
Suishouji Tech Team
Mar 20, 2018 · Fundamentals

Why Protocol Buffers Outperform JSON and XML for Mobile Data Transfer

Protocol Buffers, Google’s cross‑platform serialization format, dramatically reduces payload size and speeds up transmission compared to JSON or XML by using compact binary encoding, Varint and ZigZag techniques, and offers powerful reflection mechanisms illustrated with Objective‑C examples and detailed code snippets.

ReflectionVarintZigzag
0 likes · 14 min read
Why Protocol Buffers Outperform JSON and XML for Mobile Data Transfer