#Zigzag

【java】6. ZigZag Conversion

  6.ZigZagConversionThestring "PAYPALISHIRING" iswritteninazigzagpatternonagivennumberofrowslikethis:(youmaywanttodisplaythispatterninafixedfontforbet...
代码星球 ·2020-08-07

LeetCode 103:Binary Tree Zigzag Level Order Traversal

Givenabinarytree,returnthe zigzaglevelorder traversalofitsnodes'values.(ie,fromlefttoright,thenrighttoleftforthenextlevelandalternatebetween).Forexamp...

LeetCode 6. ZigZag Conversion Question

题意:给你一个字符串和行数numRows,要求把该字符串变成一个“之”字形状后,按行数输出该字符串。 例子:"ABCDEFGHIJKLMNO",4。该字符串的“之”字形状为:AGMBFHLNCEIKODJ那么,输出为AGMBFHLNCEIKODJ(按行数输出)&...