[PR #897] [MERGED] feat: leetcode zigzag solution #1419

Open
opened 2026-01-29 15:20:24 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/897
Author: @straight-into-the-wall
Created: 10/22/2021
Status: Merged
Merged: 12/9/2021
Merged by: @Panquesito7

Base: masterHead: leetcode/zigzag


📝 Commits (10+)

  • 4ff5849 perf: faster implementation of the TwoSum problem
  • 6453a9e doc: fixed typos on comments
  • 80e54d9 updating DIRECTORY.md
  • e45b4d9 feat: leetcode ZigZag conversion solution
  • 6d3985c doc: leetcode README added ZigZag conversion solution
  • ab710ee fix: clang-tidy linter corrections
  • 9e8e4b8 doc: fixed typo on leetcode README
  • 495d780 Update leetcode/src/6.c
  • 30f3cea Update leetcode/src/6.c
  • 335fbb0 fix: unsigned int and include comments

📊 Changes

3 files changed (+153 additions, -0 deletions)

View changed files

📝 DIRECTORY.md (+1 -0)
📝 leetcode/README.md (+1 -0)
leetcode/src/6.c (+151 -0)

📄 Description

Description of Change

A solution for the ZigZag conversion problem.

References

Hacktoberfest issue

ZigZag Conversion problem on leetcode

Checklist

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes: Solution to the 6-ZigZag conversion problem was missing. Here is (decent) one.

ZigZagConversion-SubmissionDetail-LeetCode.pdf


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/897 **Author:** [@straight-into-the-wall](https://github.com/straight-into-the-wall) **Created:** 10/22/2021 **Status:** ✅ Merged **Merged:** 12/9/2021 **Merged by:** [@Panquesito7](https://github.com/Panquesito7) **Base:** `master` ← **Head:** `leetcode/zigzag` --- ### 📝 Commits (10+) - [`4ff5849`](https://github.com/TheAlgorithms/C/commit/4ff5849c55957ad1988e5f88b63b9d3992a3ddf6) perf: faster implementation of the TwoSum problem - [`6453a9e`](https://github.com/TheAlgorithms/C/commit/6453a9e748c75ed87ce2f54cf7f9feb0c867af40) doc: fixed typos on comments - [`80e54d9`](https://github.com/TheAlgorithms/C/commit/80e54d94f937b733dcc75d7b6ea1b4eb337d7cce) updating DIRECTORY.md - [`e45b4d9`](https://github.com/TheAlgorithms/C/commit/e45b4d97a61defcbeffd459dbb29e6c33b6762ec) feat: leetcode ZigZag conversion solution - [`6d3985c`](https://github.com/TheAlgorithms/C/commit/6d3985cc5c62496b7c0dae7d3f23d39c5c62b9ed) doc: leetcode README added ZigZag conversion solution - [`ab710ee`](https://github.com/TheAlgorithms/C/commit/ab710ee21f1d2fa1ae3a0ee01422273d115e45e7) fix: clang-tidy linter corrections - [`9e8e4b8`](https://github.com/TheAlgorithms/C/commit/9e8e4b87f9756e6599ee4cad1be54c13370ef618) doc: fixed typo on leetcode README - [`495d780`](https://github.com/TheAlgorithms/C/commit/495d780d0c42c145b7114247bfc6d04e2901bde3) Update leetcode/src/6.c - [`30f3cea`](https://github.com/TheAlgorithms/C/commit/30f3ceaad059a2734310c1ad0ba8101b1cd5cd64) Update leetcode/src/6.c - [`335fbb0`](https://github.com/TheAlgorithms/C/commit/335fbb09ba053bd910b9aa26d471394c215b53d7) fix: unsigned int and include comments ### 📊 Changes **3 files changed** (+153 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `DIRECTORY.md` (+1 -0) 📝 `leetcode/README.md` (+1 -0) ➕ `leetcode/src/6.c` (+151 -0) </details> ### 📄 Description #### Description of Change A solution for the ZigZag conversion problem. #### References [Hacktoberfest issue](https://github.com/TheAlgorithms/C/issues/249) [ZigZag Conversion problem on leetcode](https://leetcode.com/problems/zigzag-conversion/) #### Checklist - [x] Added description of change - [x] Added file name matches [File name guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#File-Name-guidelines) - [x] Added tests and example, test must pass - [x] Relevant documentation/comments is changed or added - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. Notes: Solution to the 6-ZigZag conversion problem was missing. Here is (decent) one. [ZigZagConversion-SubmissionDetail-LeetCode.pdf](https://github.com/TheAlgorithms/C/files/7398227/ZigZagConversion-SubmissionDetail-LeetCode.pdf) <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/897"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:20:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1419