登录
首页 » 数据结构 » 问题描述:假设一个商店,有一个架子和一个仓库,当第…

问题描述:假设一个商店,有一个架子和一个仓库,当第…

于 2022-07-13 发布 文件大小:2.28 kB
0 176
下载积分: 2 下载次数: 1

代码说明:

问题描述: 假设一个商店,它有一个货架和一个仓库,当货架上的商品数量少于一定的数目时,从仓库运一定数量的商品摆到货架上,当仓库里的商品的数量少于一定的数目时,购买商品把仓库填满,商品的出售要按照商品的生产日期来,快要过期的商品要先出售。 解决问题的方法: 用了两个栈和 一个队列,把队列当作仓库,用一个栈作为货架,把另一个栈当作临时的存储箱。当要往货架上添商品时,先把作为货架的栈中的元素全都压到作为存储箱的栈中,再把仓库中的元素压到存储箱中,然后再把存储箱中的所有元素都压到货架上,这样,就能保证快要过期的商品先被出售。-Problem description : Suppose a shop, which has a shelf and a warehouse, when the merchandise on the shelves less than a certain quantity of the number, a certain number from the warehouses of goods on the shelves, when the warehouse volume of goods is less than certain number, purchase goods warehouse filled, the goods according to the sale of commodity production to date, is about to expire first sale of goods. The solution : a two stack and a queue, queue as a warehouse, used as a stack shelves, and another stack as a temporary storage bins. When to go to the shelves Tim commodity, first as a stack shelves of all elements of the pressure storage tank as the stack, then the warehouse down to the storage element box, and then s

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • new database system using php
    new database system using php
    2022-08-13 20:22:40下载
    积分:1
  • 员工管理
    它是一种软件,可以用于大型组织,追溯历史,很容易地更新员工信息及员工
    2022-02-02 23:13:35下载
    积分:1
  • 单链表的实现,包含链表元素的删除,查找,插入
    数据结构单链表的实现,包含链表元素的删除,查找,插入-single linked list data structure to achieve List contains elements delete, retrieve, insert
    2022-07-27 15:47:15下载
    积分:1
  • Bplustree (实现的功能)
    每个关键字的指针指向的内容,稍后我会搜索特定的内容,直接在二叉树搜索关键字,找到一个匹配
    2022-05-04 21:58:08下载
    积分:1
  • Skiplist 实现
    Skiplist 跳表 c++ 实现, 包含vs工程文件, Skiplist.h 代码文件 和 TestMain.cpp 测试文件,主要应用实现有序集,效率接近树,但实现简单, redis内部也有skiplist的实现
    2022-03-07 07:39:40下载
    积分:1
  • sqlite浏览工具
    sqlitebrowser是一款sqlite数据结构查看工具、客户端。通过sqlitebrowser可以查看sqlite数据结构、数据内容等信息。现在流行的手机开发,android或者html5本地数据库都是使用sqlite,还有很多 也是使用这种本地数据库,小而强,很不错的本地数据库。
    2022-07-03 00:11:41下载
    积分:1
  • 递归算法,字符串的倒序输出。
    递归算法,字符串的倒序输出。-recursive algorithm, the reverse output string.
    2022-03-14 23:58:39下载
    积分:1
  • PKU on several topics Tunnel WarfareUnique SolutionWashing ClothesWeather Foreca...
    PKU 上的几个题目 Tunnel Warfare Unique Solution Washing Clothes Weather Forecast Who Gets the Most Candies -PKU on several topics Tunnel WarfareUnique SolutionWashing ClothesWeather ForecastWho Gets the Most Candies
    2023-02-19 12:30:04下载
    积分:1
  • 中图的相关操作,中图的相关操作
    数据结构中图的相关操作,数据结构中图的相关操作-data structure of the plan related operations, data structure of the plan related to operation
    2023-09-03 08:05:03下载
    积分:1
  • Online Recruitment System
    这是求职者可找在线招聘管理系统。每位求职者将登录到事故帐户和更新他他可以创建他的简历的信息。他会申请这份工作。可以搜索多个工作。管理员将看到求职者已经申请了这份工作的所有列表。他可以看到他们的个人资料,可以招募他们。为招募他要召唤他们的采访。他将给招聘者发送电子邮件。自动化的电子邮件将被创建并发送给求职者。电子邮件中包含的时间面试和作业的详细信息。
    2022-07-27 00:18:24下载
    积分:1
  • 696516资源总数
  • 106611会员总数
  • 19今日下载