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

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

于 2022-07-13 发布 文件大小:2.28 kB
0 122
下载积分: 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 个回复

  • 库中已经存在的通过网络发送出去,实现共享...
    把数据库中已经存在的数据通过网络发送出去,实现数据共享-Send the existed data in the database via network and share the data
    2022-05-30 07:55:22下载
    积分:1
  • ASP developed a very simple online application system. This code has become very...
    ASP开发的非常简洁的在线报名系统。这个代码在网上很流行,不过本人没有测试过,可能存在一些小问题,行家应该一看就明白。-ASP developed a very simple online application system. This code has become very popular online, but I have not tested, there may be some small problem, one expert should be able to understand the look.
    2023-05-29 15:45:03下载
    积分:1
  • ACCESS编写的库维护操作平台,可以给写ACCESS程序的同志提供参考...
    ACCESS编写的数据库维护操作平台,可以给写ACCESS程序的同志提供参考-ACCESS prepared database maintenance operation platform, you can write to the ACCESS program to provide reference comrades
    2022-04-29 01:44:46下载
    积分:1
  • 一个求进制的c++算法,希望能给大家带来帮助!如果大家有更好的,别忘记发给我啊! emil:wyx32893039@163.com...
    一个求进制的c++算法,希望能给大家带来帮助!如果大家有更好的,别忘记发给我啊! emil:wyx32893039@163.com-seeking a band of c algorithm, we can bring hope to help! If you have the better, do not forget to me ah! Emil : wyx32893039@163.com
    2022-01-26 04:44:06下载
    积分:1
  • iis5.1,不需要系统盘iis5.1 ,不需要系统盘iis5.1iis5.1,不需要系统盘iis5.1...
    iis5.1,不需要系统盘iis5.1 ,不需要系统盘iis5.1iis5.1,不需要系统盘iis5.1-iis5.1, do not need the system disk iis5.1iis5.1, do not need the system disk iis5.1iis5.1, do not need the system disk iis5.1
    2022-09-14 22:05:05下载
    积分:1
  • 最新收集得老外写的一个矩阵类,功能相当的强大,比以前的源码水平提高了不少,源码中有相当详细的英文注释,简单明了!...
    最新收集得老外写的一个矩阵类,功能相当的强大,比以前的源码水平提高了不少,源码中有相当详细的英文注释,简单明了!-collected in the latest foreigner to write a matrix of type, quite powerful, the source than the level a lot, a significant source of detailed notes in English, simple!
    2022-07-16 04:23:15下载
    积分:1
  • a good Attendance Management System
    一个很好的考勤管理系统-a good Attendance Management System
    2022-06-27 18:04:52下载
    积分:1
  • a database installed "individual job search management system" using t...
    一、数据库安装 《个人求职管理系统》使用MySQL数据库,请你先在你的数据库服务器上建立一个数据库,然后将你下载的程序解压缩后上传到你的网站空间下,接下来请将sql目录下的tdjob.sql文件导入你刚建立好的MySQL数据库中,导入的SQL文件会在数据库中新建两个数据表td_pjm_user和td_pjm_jobs。 注意:成功导入数据文件后,请修改lib目录下的config.jsp文件,该文件里包含了你的数据库连接信息,请进行相应的修改。 二、JavaBeans安装 将lib目录下的td文件夹拷贝到WEB-INF/classes目录下。td目录中有两个class文件,这两个文件的原Java文件你可以在lib目录下的source目录中找到。-a database installed "individual job search management system" using the MySQL database you, in your database server on the establishment of a database, then you download the procedures decompress after uploaded to your website space, then I would be grateful if sql directory of documents into your tdjob.sql just to establish good MySQL database, SQL file into the new database td_pjm_user two data tables and td_pjm_jobs. Note : Successful data into documents, please amend the lib directory config.jsp document, the document contains your database connection information, please amended accordingly. 2, JavaBeans lib directory will be installed under the td fo
    2023-06-16 04:55:03下载
    积分:1
  • 在线考试系统
    在线考试系统是为不同学生提供在线考试。 使用 PHP 构建,  wamp 服务器包含登录表单,注册表单, 和数据库维护,可以删除或者插入数据
    2022-01-30 21:57:38下载
    积分:1
  • 库开发,用delphi实现库的开发 大家可以借鉴以下
    数据库开发,用delphi实现数据库的开发 大家可以借鉴以下-database development using delphi database development we can learn from the following
    2022-06-15 04:09:53下载
    积分:1
  • 696518资源总数
  • 105205会员总数
  • 10今日下载