Skip to content

此项目包括牛客网华为机试训练集的解答,机试真题解答以及常用函数所组成的模块。此模块的优点是函数名、变量名直接解释程序的用途,逻辑结构明了。This is a project covering the sample exercises/training tests published by Huawei on www.nowcoder.com (online judge system).

Notifications You must be signed in to change notification settings

yancy-zh/hwTrainingSolvPack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solutions for the training exercises on nowcoder.com, Huawei online programming sample tests

此项目包括牛客网华为机试训练集的解答,机试真题解答以及常用函数所组成的模块。此模块的优点是函数名、变量名直接解释了程序的用途,逻辑结构明了。 The solutions are named as self-explanatory as possible. The solutions covers the exercises with the following titles. 具体提供解答程序的题目如下:

  • 字符串分隔
  • 进制转换
  • 质数因子
  • 字符个数统计
  • 字符串反转
  • 单词排序
  • int型正整数在内存中存储时1的个数
  • 购物单
  • 坐标移动
  • 识别有效的IP地址和掩码并进行分类统计
  • 密码验证合格程序
  • 简单密码
  • 汽水瓶
  • 删除字符串中出现次数最少的字符
  • 合唱队
  • 数据分类处理
  • 字符串排序,三个规则
  • 查找兄弟单词
  • 字符串加解密
  • 蛇形矩阵
  • 迷宫问题
  • 字符串合并处理
  • 求小球落地5次后所经历的路程和第5次反弹的高度
  • 名字的漂亮度
  • 按字节截取字符串
  • 线性插值
  • 学英语
  • 称砝码
  • 四则运算,表达式求值
  • 字符串是另一个字符串的子串
  • 将真分数分解为埃及分数
  • 二维数组操作
  • 字符串中的变量替换
  • 挑7
  • 员工投票,选明日之星
  • 高精度的整数加法
  • 输入n个整数,输出其中最小的k个
  • 字符串不同的排列数,兄弟单词
  • 排列组合公式
  • 有向图是否有环
  • 逻辑运算符
  • 记负均正

Prerequisites

The following instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Python 3

Python 3 is used when this project is constructed. This project requires the following packages to be installed:

  • itertools
  • unittest
  • json
  • datetime
  • networkx

Python 3 can be acquired at the official website, download page. To check which packages have already been installed in your python 3 environment, you can run the following command in your shell or powershell terminal:

python3 freeze

Running the tests

Run the test using "unittest" configuration template.

Author

Acknowledgments

  • https: // blog.csdn.net / python_tty

About

此项目包括牛客网华为机试训练集的解答,机试真题解答以及常用函数所组成的模块。此模块的优点是函数名、变量名直接解释程序的用途,逻辑结构明了。This is a project covering the sample exercises/training tests published by Huawei on www.nowcoder.com (online judge system).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages