Problem Description:Given two 1d vectors, implement an iterator to return their elements alternately.For example, given two 1d vectors:v1 = [1, 2]v2 =...
分类:
其他好文 时间:
2015-09-14 15:29:18
阅读次数:
123
The key challenge to this problem is to make the code clean. This post has shared a nice example, which is rewritten below in C++.class Solution {publ...
分类:
其他好文 时间:
2015-09-14 15:18:51
阅读次数:
155
Zigzag IteratorGiven two 1d vectors, implement an iterator to return their elements alternately.For example, given two 1d vectors:v1 = [1, 2]v2 = [3, ...
分类:
其他好文 时间:
2015-09-14 13:57:49
阅读次数:
172
【题目】LeetCode(6): ZigZag ConversionURL: https://leetcode.com/problems/zigzag-conversion/【描述】The string"PAYPALISHIRING"is written in a zigzag pattern on...
分类:
其他好文 时间:
2015-09-14 07:02:48
阅读次数:
192
Problem:Given two 1d vectors, implement an iterator to return their elements alternately.For example, given two 1d vectors:v1 = [1, 2]v2 = [3, 4, 5, 6...
分类:
其他好文 时间:
2015-09-14 01:48:28
阅读次数:
151
题目描述:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed fo...
分类:
其他好文 时间:
2015-09-13 17:19:51
阅读次数:
184
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font ...
分类:
其他好文 时间:
2015-09-13 11:50:43
阅读次数:
161
题目来源:https://leetcode.com/problems/zigzag-conversion/题意分析: 这道题目是字符串处理的题目。输入一个字符串和一个数字,将字符串填入倒Z形输入字符串,然后按照列读取字符,得到一个新的字符,输出这个字符。例如:字符串"PAYPALISHIRING",...
分类:
编程语言 时间:
2015-09-10 19:08:53
阅读次数:
189
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-09-10 15:40:36
阅读次数:
171
https://leetcode.com/problems/zigzag-conversion/The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may...
分类:
其他好文 时间:
2015-09-01 21:23:47
阅读次数:
230