数据结构
x光人15H
这个作者很懒,什么都没留下…
展开
-
1123 舍入 测试点
测试点1:负整数的舍入测试点5:第3种情况的四舍六入测试点7:连续进位测试点8:输入为负值,输出为零时,零的符号问题。原创 2024-01-02 15:33:36 · 805 阅读 · 1 评论 -
A + B for Polynomials
#include <stdio.h>#include <stdlib.h>/* 注:1. 多项式采用单链表结构存储,表结点为结构体类型2. 指数默认递减输入,因此对于输入不需要再进一步排序,实际上此题类似于两个 有序单链表的合并。3. 两个指数相同结点的系数之和可能为0,此时不计入最终结果即可。*/// 结点数据类型定义typedef struct{ int exponents; float coexponents;}Elemtype; // 单链原创 2022-01-15 13:37:06 · 147 阅读 · 0 评论 -
11-散列3 QQ帐户的申请与登陆(C语言实现 小白专场)
11-散列4 Hashing - Hard VersionGiven a hash table of size N, we can define a hash function H(x)=x%N. Suppose that the linear probing is used to solve collisions, we can easily obtain the status of the hash table with a given sequence of input numbers.Howe原创 2020-08-20 17:32:24 · 1586 阅读 · 0 评论