Skip to content

Commit 2316a8d

Browse files
committed
add more kattis problems
1 parent d03f90c commit 2316a8d

File tree

14 files changed

+96
-7
lines changed

14 files changed

+96
-7
lines changed

notebooks/Ch05-Iterations.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,7 @@
922922
"- almost every problem involves some form of loops!\n",
923923
"- problems you may be able to solve from concepts learned so far:\n",
924924
"\n",
925+
"- More or Less - https://open.kattis.com/problems/moreorless\n",
925926
"- Oddities - https://open.kattis.com/problems/oddities\n",
926927
"- Tall Enough - https://open.kattis.com/problems/tallenough\n",
927928
"- A Terrible Fortress - https://open.kattis.com/problems/aterriblefortress\n",
@@ -942,7 +943,10 @@
942943
"- Fancy Frames - https://open.kattis.com/problems/fancyframes\n",
943944
" - Hints: Loops and string\n",
944945
"- Sort of Sort - https://open.kattis.com/problems/sortofsort\n",
945-
" - Hint: print first all the sorted elements to the end; skip if smaller than the last printed"
946+
" - Hint: print first all the sorted elements to the end; skip if smaller than the last printed\n",
947+
"- DRIP - https://open.kattis.com/problems/drip\n",
948+
" - Hint: Loop and math\n",
949+
"- Hill Climbing - https://open.kattis.com/problems/hillclimbracing"
946950
]
947951
},
948952
{

notebooks/Ch06-Strings.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,6 +1992,7 @@
19921992
"source": [
19931993
"## Kattis problems\n",
19941994
"\n",
1995+
"- Passport Dates - https://open.kattis.com/problems/vegabrefadagsetningar\n",
19951996
"- Blackthorn - https://open.kattis.com/problems/blackthorn\n",
19961997
"- Avion - https://open.kattis.com/problems/avion\n",
19971998
"- Apaxiaans - https://open.kattis.com/problems/apaxiaaans\n",
@@ -2015,7 +2016,8 @@
20152016
"- Danish Date Format - https://open.kattis.com/problems/danishdateformat\n",
20162017
"- Attempted Alphabet - https://open.kattis.com/problems/attemptedalphabet\n",
20172018
"- Alphabet Soup - https://open.kattis.com/problems/alphabetsoup\n",
2018-
"- Free-Form Input - https://open.kattis.com/problems/freeforminput\n"
2019+
"- Free-Form Input - https://open.kattis.com/problems/freeforminput\n",
2020+
"- \"lv\"-able - https://open.kattis.com/problems/lvable\n"
20192021
]
20202022
},
20212023
{
@@ -2025,6 +2027,13 @@
20252027
"outputs": [],
20262028
"source": []
20272029
},
2030+
{
2031+
"cell_type": "code",
2032+
"execution_count": null,
2033+
"metadata": {},
2034+
"outputs": [],
2035+
"source": []
2036+
},
20282037
{
20292038
"cell_type": "code",
20302039
"execution_count": null,

notebooks/Ch08-1-Lists.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2816,7 +2816,10 @@
28162816
" - Hint: use two loops, division and modulo\n",
28172817
"- Tic-Tac-Toe Solver - https://open.kattis.com/problems/tictactoesolver\n",
28182818
" - Hint: 2-D List or List of strings - simply check 8 winning ways from each X or O char - just like in tic-tac-toe\n",
2819-
"\n",
2819+
"- Sudoku Verify - https://open.kattis.com/problems/sudokuverify\n",
2820+
" - Hint: 2-D List or List of strings - check rows, columns and 3x3 sub-grids for validity\n",
2821+
"- Alphabetical Aristocrats - https://open.kattis.com/problems/alphabeticalaristocrats\n",
2822+
" - Hint: use list of tuple to store the actual name and name to sort and sort them using built-in sort method\n",
28202823
"### List sorting with two keys\n",
28212824
"- Roll Call - https://open.kattis.com/problems/rollcall\n",
28222825
"- Cooking Water - https://open.kattis.com/problems/cookingwater"

notebooks/Ch13-Recursion.ipynb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"cell_type": "markdown",
4040
"metadata": {},
4141
"source": [
42-
" \n",
4342
"### Python Recursion Depth Limit\n",
4443
"- by default Python limits recursion depth to something < 3000\n",
4544
"- you can set it up higher if needed"
@@ -599,9 +598,9 @@
599598
"\n",
600599
"- the following Kattis problems can be solved using recursion:\n",
601600
"\n",
602-
"1. Last Factorial Digit: https://open.kattis.com/problems/lastfactorialdigit\n",
603-
"2. Watch Out For Those Hailstones! - https://open.kattis.com/problems/hailstone\n",
604-
"3. Of of Sorts - https://open.kattis.com/problems/outofsorts\n",
601+
"- Last Factorial Digit: https://open.kattis.com/problems/lastfactorialdigit\n",
602+
"- Watch Out For Those Hailstones! - https://open.kattis.com/problems/hailstone\n",
603+
"- Out of Sorts - https://open.kattis.com/problems/outofsorts\n",
605604
" - Hint: implement recursive binary search and apply to the generated unsorted sequence"
606605
]
607606
},

vegabrefadagsetningar/a.out

37.1 KB
Binary file not shown.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>English</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>com.apple.xcode.dsym.a.out</string>
9+
<key>CFBundleInfoDictionaryVersion</key>
10+
<string>6.0</string>
11+
<key>CFBundlePackageType</key>
12+
<string>dSYM</string>
13+
<key>CFBundleSignature</key>
14+
<string>????</string>
15+
<key>CFBundleShortVersionString</key>
16+
<string>1.0</string>
17+
<key>CFBundleVersion</key>
18+
<string>1</string>
19+
</dict>
20+
</plist>
122 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
triple: 'arm64-apple-darwin'
3+
binary-path: a.out
4+
relocations: []
5+
...

vegabrefadagsetningar/data/1.ans

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-03-08

vegabrefadagsetningar/data/1.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
08 MAR /MAR 25

0 commit comments

Comments
 (0)