Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
lockfu
Java_Books
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
Java_Books
/
code
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
26 lines (19 loc) · 882 Bytes
master
Breadcrumbs
Java_Books
/
code
Copy path
Top
File metadata and controls
Code
Blame
26 lines (19 loc) · 882 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// baidu ------
写生产者、消费者代码
字符串中出现的第一个只出现过一次的字符
观察者模式 单例模式 双重检测单例 饿汉懒汉单例模式
数组旋转的最小值 *****
快排 *****
// baidu end
// ali
非递归遍历二叉树
查找数组的中间元素
非递归且不用额外空间(不用栈),如何遍历二叉树
top k问题,100亿条数据,找出其中最大的20条,并分析时间复杂度
给你两个文件(字符串形式的)如何找出他们之间的不同地方?
快速排序的平均复杂多少?最坏情况是什么?
给你50亿行字符串,机器4G内存(只能一台机器),找出重复次数最多的那行字符串?(以行为单位,每行不超过10个字符)
一个圆上三个点形成钝角的概率是多少?
讨论了下堆排序
手写快排/冒泡排序
//ali end
You can’t perform that action at this time.