Comments (4)
是 go 最优解,不信你可以复制我的代码,去 leetcode 提交。你举几个例子,哪些题用 python 改写了,性能变的很差?
from leetcode-go.
比如
[632. Smallest Range Covering Elements from K Lists]:
[1235. Maximum Profit in Job Scheduling]:
from leetcode-go.
是不是python的问题,这个语言好像本身就性能不太好?
from leetcode-go.
@Jack-cin 他们网站后台数据加强了。我用 Go 的代码又提交了一次,632 降低到 88.89%,1235 降低到 93.33% 。至于 Python 的版本,有些翻译过来的实现,需要更改。Go 的 runtime 和 Python 不一样,所以直接翻译过来耗时和内存都不一样。
from leetcode-go.
Related Issues (20)
- 0027 Remove Element 有道题不明白 HOT 2
- A problem in 707. Design Linked List HOT 1
- Clone Error HOT 1
- 918. Maximum Sum Circular Subarray HOT 4
- 763 PartitionLabels 时间复杂度 HOT 1
- 关于此电子书如何搭建 HOT 5
- Windows系统下 关于 Clone 的问题 HOT 7
- When click the 's' key in the keyboard will trigger website search input box to be enable
- 0114.Flatten-Binary-Tree-to-Linked-List test case wrong HOT 5
- 是否可以提供epub版本 HOT 2
- Query: How book is generated? HOT 1
- Query: What is the technology behind web ? thank you HOT 5
- 怎么开启暗黑模式 HOT 3
- 0004 bug
- Can you re-arrange the layout of PDF to put the title and solution of question on the same page? HOT 1
- Hacking Facebook account HOT 4
- LeetCode第七题Reverse-Integer HOT 2
- leetcode 2038题, segment Tree的模板 HOT 1
- 1004 Max Consecutive Ones III HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leetcode-go.