Skip to content

chanita/code-battle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Battle

Code Battle by Python Coder in Thailand ( https://www.facebook.com/PythonCodersTH )

Racing

Aug 4, 2013 has 2 rounds (2 programming problem).

Solve the programming problem given at https://github.com/chanita/code-battle.

Finish it before the event.

Submit the url to your GitHub project (Each GitHub url for each problem).

Shows up at the venue and pay 20 baht of joining fee.

If you wanna battle put your bet ( to be determined at the event ) ( no more than 100 baht).

We will run test to see if your script produce correct answer.

We will capture time it takes to finish running the script ( NOT the time you spent on writing the script ).

Only the script that produces correct answer gets to race.

We do head or tail to determine who will win the bet. ( the fastest or the slowest )

The winner get all battle fee and joining fee.

You can battle one problem if you want.

See example of how your GitHub project should look at https://github.com/juacompe/code_battle_sample.

Instruction

Follow steps below to submit your answers/scripts.

  1. Download question folders https://github.com/chanita/code-battle ; each folder contains data file called numbers.txt.

  2. Put your script that solve the problem into that folder, name the script file “best_script.*”

  3. Your script must generate the run result as “run_result.txt” into the same folder. You can see sample of the answer format at https://github.com/juacompe/code_battle_sample.

  4. Encapsulate every (answer) folders into one folder/ Put it on Github. See example at https://github.com/juacompe/code_battle_sample.

  5. Give us the link that we can clone your code. Send email to code.battle@shogunvps.com

  6. Join the event.

Problems

  1. The data file contains a series of 4 digits decimal number, some numbers are missing. What are they?

  2. The data file contains numbers, find the numbers occur more than once. How many duplicated?

ปฏิบัติตามขั้นตอนต่อไปนี้ เพื่อส่งคำตอบ

  1. ดาวน์โหลดโฟลเดอร์โจทย์ จาก <https://github.com/chanita/code-battle ซึ่งในแต่ละโฟลเดอร์จะมี ไฟล์ข้อมูลชื่อว่า numbers.txt

  2. ใส่ script ที่แก้โจทย์ของคุณเอาไว้ในโฟลเดอร์นี้ โดยตั้งชื่อไฟล์ว่า "best_script.*"

  3. Script ของคุณจะต้องบันทึกคำตอบเอาไว้ในไฟล์ชื่อ "run_result.txt" และเก็บไว้ในโฟลเดอร์เดียวกันกับไฟล์ข้อมูล สามารถดู format ของคำตอบได้ที่ https://github.com/juacompe/code_battle_sample.

  4. รวบรวมทุกโฟลเดอร์ของคุณเอาไว้ แล้วนำไปไว้ที่ ไปไว้ที่ GitHub ดูตัวอย่างได้ที่ https://github.com/juacompe/code_battle_sample.

  5. ส่ง link ที่ได้จากข้อ 4. มาให้เรา เพื่อที่เราจะได้ clone โค้ดออกมารันได้ โปรดส่งมาที่ code.battle@shogunvps.com

  6. มาร่วมงาน

โจทย์

  1. นี่คือ series ของ เลขฐานสิบ 4 หลัก (0000 - 9999) มีเลขบางชุดหายไป มันคืออะไรบ้าง ß
  2. นี่คือ ไฟล์นี้มีเลข่จำนวนมาก ให้หา เลขที่ปรากฏตัวซ้ำซาก และบอกด้วยว่าซ้ำไปกี่ครั้ง

About

Code Battle by Python Coder in Thailand

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages