
数据结构
Y1X1n安全
专注网络安全及编程开发
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Word Pattern
题目描述 Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in str. E...原创 2018-05-25 14:28:16 · 188 阅读 · 0 评论 -
Pascal's Triangle II
题目描述Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's triangle, each number is the sum of the two num...原创 2018-05-28 12:57:48 · 309 阅读 · 0 评论 -
Set Mismatch
Set Mismatch题目描述 The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another number in the set, which results i...原创 2018-05-23 17:20:31 · 194 阅读 · 0 评论 -
Sum of all integer numbers
题目描述Your task is to find the sum of all integer numbers lying between 1 and N inclusive.输入The input consists of a single integer N that is not greater than 10000 by it's absolute value. 输出Write a sin...原创 2018-06-05 09:46:40 · 194 阅读 · 0 评论 -
Specialized Four-Digit Numbers(尬)
题目描述Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (base 16) notation an...原创 2018-06-15 15:06:03 · 344 阅读 · 0 评论 -
Quicksum
题目描述A checksum is an algorithm that scans a packet of data and returns a single number. The idea is that if the packet is changed, the checksum will also change, so checksums are often used for dete...原创 2018-06-15 16:26:45 · 1141 阅读 · 0 评论 -
A Contesting Decision
题目描述Judging a programming contest is hard work, with demanding contestants, tedious decisions,and monotonous work. Not to mention the nutritional problems of spending 12 hours with only donuts, pizz...原创 2018-06-18 17:58:23 · 449 阅读 · 0 评论