随笔分类 - Golang
摘要:打包文件用到了tar包,其中tar包的用法可以参考API golang提供了个函数用来遍历文件夹 filepath.Walk 函数具体描述如下: func Walk(root string, walkFn WalkFunc) error root是用遍历的文件夹 type WalkFunc type
阅读全文
摘要:We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an integer arra
阅读全文
摘要:Roy's friends has been spying on his text messages, so Roy thought of an algorithm to encrypt text messages. Encryption Algorithm is as follows:We say
阅读全文
摘要:Our friend Monk has been made teacher for the day today by his school professors . He is going to teach informatics to his colleagues as that is his f
阅读全文
摘要:You have to perform NN operations on the queue. The operations are of following type: E xE x : Enqueue xx in the queue and print the new size of the q
阅读全文
摘要:Monk's Love for Food Monk's Love for Food Our monk loves food. Hence,he took up position of a manager at Sagar,a restaurant that serves people with de
阅读全文
摘要:具体的题目如下:(就是将多维数组的行列互换) A multi-dimensional array is an array of arrays. 2-dimensional arrays are the most commonly used. They are used to store data i
阅读全文
摘要:我做hackerearth上题目记录,具体的题目描述是这样的: Given the size and the elements of array A, print all the elements in reverse order. Input: First line of input contai
阅读全文

浙公网安备 33010602011771号