This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
fetch_dir="/home/aaron67/prj/FetchLeetcodeSubmission/release" | |
src_dir="/home/aaron67/prj/leetcode-oj-submissions" | |
# 更新 | |
cd $src_dir | |
/usr/bin/git pull | |
# 抓取 | |
cd $fetch_dir | |
/usr/bin/git pull | |
/usr/bin/java -jar FetchLeetcodeSubmission.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int main(int argc, const char * argv[]) { | |
const int COUNT = 10; | |
int sequence[COUNT] = {7, 3, 4, 5, 1, 4, 2, 4, 6, 3}; | |
int length[COUNT]; | |
for (int i = 0; i < COUNT; ++i) { | |
int max = 1; |
NewerOlder