You need to log in or create an account to post to this user's Wall.
Hector commented on the post, Sliding Window Maximum 3 months, 2 weeks ago
What if the input is a stream instead of an array of fixed size?
Hector commented on the post, Clone Graph Part I 11 months, 1 week ago
Guess the problem was to clone a “Connected” graph. Consider graph:
A->B<-C
Code above start from A will stop at node B. Node C will be ignored…
Hector commented on the post, Finding the Minimum Window in S which Contains All Elements from T 1 year ago
The has Found table might mean unsigned char instead char?
hasFound[256]
updated as
needToFind[T[i]]++;as the code shown if char negative will cause error!
Hector posted an update in the group Feedback 1 year, 1 month ago
Is there a way to use subroutines for online judge? currently its just a big function call?
I mean is there a way to do sth like:
[cpp]
vector<vector > combinationSum(vector &candidates, int target) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
int index[10000];
index[0] = 0;
return …[Read more]@jcleetcode really nice for the code and explanation!! That code is actually very similar to a template inside ”math.h”:
Hector posted an update in the group Feedback 1 year, 1 month ago
Very nice site, especially the online judge part. Just thinking that if it’s possible to add member’s usage of online judge to ”activity” record. It would benefit each member at least the following:
1) Easier to see which questions already completed.
2) When review it’s easier to target those tough ones (most tries)Thx!
- 1 person likes this.
- Hector in the forum topic Test data to fix "runtime error" for the 3SUM problem? in the group General Help
Actually the version without using set is faster :p
- Hector in the forum topic Test data to fix "runtime error" for the 3SUM problem? in the group General Help
Ok, got it now. The code has to be tweaked alittle bit to reach the requirement!
Again, very nice test cases!
- Hector in the forum topic Test data to fix "runtime error" for the 3SUM problem? in the group General Help
For the solution without using set the test data still give me “Run Status: Output Limit Exceeded” for the Judge Large test. Here’s my […]
- Hector in the forum topic Test data to fix "runtime error" for the 3SUM problem? in the group General Help
For the solution without using set the test data still give me “Run Status: Output Limit Exceeded” for the Judge Large test. Here’s my […]
- Hector in the forum topic Test data to fix "runtime error" for the 3SUM problem? in the group General Help
Never mind. Figured now. Really nice test cases! Indeed caught me in some places!
Hector joined the group General Help 1 year, 1 month ago
- Hector in the forum topic Test data to fix "runtime error" for the 3SUM problem? in the group General Help
Hi leetcode,
My 1st attempt and 1st post on this site. Also tried 3sum problem and passed the Judge Small but failed the Judge Large. Just wondering what’s the Judge Large data set were lolz.
Thanks for […]
Hector changed their profile picture 1 year, 1 month ago
Hector became a registered member 1 year, 1 month ago
