• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
吃瓜川
博客园 首页 新随笔 联系 订阅 订阅 管理

随笔分类 -  LeetCode---多线程

 
1116. 打印零与奇偶数-多线程-中等
摘要:问题描述 假设有这么一个类: class ZeroEvenOdd { public ZeroEvenOdd(int n) { ... } // 构造函数 public void zero(printNumber) { ... } // 仅打印出 0 public void even(printNum 阅读全文
posted @ 2020-10-01 23:50 吃瓜川 阅读(307) 评论(0) 推荐(0)
1115. 交替打印FooBar-多线程-中等
摘要:问题描述 我们提供一个类: class FooBar { public void foo() { for (int i = 0; i < n; i++) { print("foo"); } } public void bar() { for (int i = 0; i < n; i++) { pri 阅读全文
posted @ 2020-09-30 23:06 吃瓜川 阅读(301) 评论(0) 推荐(0)
1114. 按序打印-多线程-简单
摘要:问题描述 我们提供了一个类: public class Foo { public void first() { print("first"); } public void second() { print("second"); } public void third() { print("third 阅读全文
posted @ 2020-09-30 21:58 吃瓜川 阅读(245) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3