- 博客(6)
- 收藏
- 关注
原创 Kata | Codewars 之 Find the stray number
Title: You are given anodd-lengtharray of integers, in which all of them are the same, except for one single number. Complete the method which accepts such an array, and returns that single different number. The input array will always be valid!(odd...
2021-08-30 10:32:25 140
原创 Kata | Codewars 之 Sum of a sequence
题目: Your task is to make function, which returns the sum of a sequence of integers. The sequence is defined by 3 non-negative values:begin,end,step. Ifbeginvalue is greater than theend, function should returns0 Examples sequenceSum (2,2,2); /...
2021-08-27 17:28:16 124
原创 Kata | Codewars 之 Is this a triangle?
题目: Implement a method that accepts 3 integer values a, b, c. The method should return true if a triangle can be built with the sides of given length and false in any other case. (In this case, all triangles must have surface greater than 0 to be acce...
2021-08-27 14:00:28 134
原创 C++ 获取网卡和OA账号密码 (wireshark)
#pac_ana.h #ifndef _PAC_ANA_H #define _PAC_ANA_H #ifdef _MSC_VER /* * we do not want the warnings about the old deprecated and unsecure CRT functions * since these examples can be compiled under *nix as well */ #define _CRT_SECURE_NO_WARNINGS #endi...
2021-08-26 15:47:34 327
原创 Kata | Codewars 之 Multiples of 3 or 5
题目: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Finish the solution so that it returns the sum of all the multiples of 3 or 5belowthe number passed in. Additionally, ..
2021-08-26 15:20:07 207 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人