摘要: 看眼缘随机拿了一道不难的题https://leetcode.com/problems/add-digits/description/ Given a non-negative integer num, repeatedly add all its digits until the result ha 阅读全文
posted @ 2017-10-27 22:18 hozhangel 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 看到shell没几道题,那就把shell先刷了吧 Write a bash script to calculate the frequency of each word in a text file words.txt. For simplicity sake, you may assume: wo 阅读全文
posted @ 2017-10-27 21:31 hozhangel 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2017-10-27 17:03 hozhangel 阅读(271) 评论(0) 推荐(0) 编辑