Swift 轨道管理

本页面为 Exercism 社区提供管理 Swift 轨道所需的信息和工具。

学员
29,067
提交
474,385
指导讨论
3,479

Swift 轨道 需要关注 ⚠️

构建中

Swift 教学大纲

了解更多

帮助创建轨道教学大纲:它由一系列概念和学习练习组成,用来教授这门编程语言的基础内容。

下一个目标:创建一个至少包含 40 个概念的完整教学大纲。 了解更多。
35 个正在教授的概念
Ba
Basics
6,769 人已学过
Bo
Booleans
3,326 人已学过
Nu
Numbers
3,755 人已学过
Ch
Characters and Strings
3,145 人已学过
Es
Escaping functions
2,185 人已学过
Hi
Higher Order Functions
2,185 人已学过
Co
Conditionals
2,423 人已学过
Te
Ternary operator
2,423 人已学过
Ar
Arrays
1,878 人已学过
Ra
Ranges
467 人已学过
fo
for loops
415 人已学过
Tu
Tuples
1,569 人已学过
Op
Optionals
1,310 人已学过
Co
Conditionals Switch
889 人已学过
Co
Control transfer
889 人已学过
Wh
While and repeat loops
889 人已学过
Ca
Capturing
703 人已学过
Cl
Closures
703 人已学过
Sh
Shorthand arguments
703 人已学过
Tr
Trailing closures
703 人已学过
Di
Dictionaries
863 人已学过
Im
Importing
849 人已学过
St
String Indexing
849 人已学过
St
String Methods
849 人已学过
De
Default Parameters
1,087 人已学过
Fu
Function Overloading
1,087 人已学过
In
Inout Parameters
1,087 人已学过
Mu
Multiple Return Values
1,087 人已学过
Ne
Nested Functions
1,087 人已学过
Va
Variadic Parameters
1,087 人已学过
Me
Methods
699 人已学过
Se
Self
699 人已学过
St
Structs And Classes
699 人已学过
Va
Value and reference types
699 人已学过
En
Enumerations
616 人已学过
18 个活跃的学习练习
已开始
尝试次数
完成次数
指导请求
Layers of Lasagna Layers of Lasagna
9,836
53,496(平均 5.4)
6,769 (68.8%)
100 (1.0%)
Wings Quest Wings Quest
3,845
16,575(平均 4.3)
3,326 (86.5%)
43 (1.1%)
Freelancer Rates Freelancer Rates
4,846
56,884(平均 11.7)
3,755 (77.5%)
56 (1.2%)
Cal's Custom Sign Shop Cal's Custom Sign Shop
3,605
30,770(平均 8.5)
3,145 (87.2%)
20 (0.6%)
Secret Agent Double-Null0111 Secret Agent Double-Null0111
2,724
12,415(平均 4.6)
2,185 (80.2%)
25 (0.9%)
Vexing Vehicle Purchase Vexing Vehicle Purchase
2,965
29,192(平均 9.8)
2,423 (81.7%)
38 (1.3%)
Magician-in-Training Magician-in-Training
2,146
26,247(平均 12.2)
1,878 (87.5%)
31 (1.4%)
ChessBoard ChessBoard
515
2,887(平均 5.6)
467 (90.7%)
2 (0.4%)
Bird Watcher Bird Watcher
461
2,226(平均 4.8)
415 (90.0%)
5 (1.1%)
Santa's Swifty Helper Santa's Swifty Helper
1,654
7,077(平均 4.3)
1,569 (94.9%)
10 (0.6%)
Slice Sizing Slice Sizing
1,484
19,211(平均 12.9)
1,310 (88.3%)
34 (2.3%)
Expert Mixologist Expert Mixologist
1,062
13,498(平均 12.7)
889 (83.7%)
18 (1.7%)
Double-Null0111: Closures Are Forever Double-Null0111: Closures Are Forever
819
5,770(平均 7.0)
703 (85.8%)
8 (1.0%)
High Score Board High Score Board
944
6,223(平均 6.6)
863 (91.4%)
7 (0.7%)
The 1st Rule of Poetry Club The 1st Rule of Poetry Club
958
9,642(平均 10.1)
849 (88.6%)
10 (1.0%)
Lasagna Master Lasagna Master
1,185
10,417(平均 8.8)
1,087 (91.7%)
20 (1.7%)
Windowing System Windowing System
825
9,294(平均 11.3)
699 (84.7%)
13 (1.6%)
Log Lines Log Lines
667
2,642(平均 4.0)
616 (92.4%)
2 (0.3%)

练习题

了解更多

练习题的目的是让学员去解决一个任意的问题,并借此运用他们到目前为止学到的概念。

已同步的主代码仓库: a0e8e9ef7453d4010e123c6af8e1fb296eafad43 (更新应该是即时的)

下一个目标:实现 139 个练习。 了解详情。
98 个活跃的练习
已开始
尝试次数
完成次数
指导请求
Hello World Hello World
21,400
45,476(平均 2.1)
15,481 (72.3%)
16 (0.1%)
Difference of Squares Difference of Squares
2,559
9,455(平均 3.7)
1,688 (66.0%)
230 (9.0%)
Gigasecond Gigasecond
2,194
4,108(平均 1.9)
1,503 (68.5%)
277 (12.6%)
Leap Leap
3,114
7,098(平均 2.3)
2,607 (83.7%)
585 (18.8%)
RNA Transcription RNA Transcription
1,455
3,713(平均 2.6)
1,203 (82.7%)
157 (10.8%)
Space Age Space Age
1,163
2,750(平均 2.4)
964 (82.9%)
95 (8.2%)
Sum of Multiples Sum of Multiples
1,239
3,695(平均 3.0)
1,011 (81.6%)
123 (9.9%)
Two Fer Two Fer
2,496
4,518(平均 1.8)
1,982 (79.4%)
921 (36.9%)
Reverse String Reverse String
397
1,234(平均 3.1)
327 (82.4%)
4 (1.0%)
Resistor Color Resistor Color
114
526(平均 4.6)
93 (81.6%)
2 (1.8%)
Darts Darts
184
622(平均 3.4)
143 (77.7%)
4 (2.2%)
Bob Bob
1,078
4,180(平均 3.9)
889 (82.5%)
87 (8.1%)
ETL ETL
850
1,639(平均 1.9)
739 (86.9%)
19 (2.2%)
Armstrong Numbers Armstrong Numbers
147
723(平均 4.9)
126 (85.7%)
3 (2.0%)
Grade School Grade School
825
2,810(平均 3.4)
654 (79.3%)
27 (3.3%)
Grains Grains
801
2,922(平均 3.6)
670 (83.6%)
61 (7.6%)
Hamming Hamming
969
2,321(平均 2.4)
884 (91.2%)
76 (7.8%)
Isogram Isogram
700
1,701(平均 2.4)
593 (84.7%)
17 (2.4%)
List Ops List Ops
726
5,425(平均 7.5)
511 (70.4%)
15 (2.1%)
Nucleotide Count Nucleotide Count
1,114
2,558(平均 2.3)
843 (75.7%)
64 (5.7%)
Raindrops Raindrops
843
1,750(平均 2.1)
723 (85.8%)
32 (3.8%)
Resistor Color Duo Resistor Color Duo
72
196(平均 2.7)
56 (77.8%)
4 (5.6%)
High Scores High Scores
75
215(平均 2.9)
60 (80.0%)
0 (0.0%)
D&D Character D&D Character
38
93(平均 2.4)
29 (76.3%)
0 (0.0%)
Square Root Square Root
35
72(平均 2.1)
28 (80.0%)
0 (0.0%)
Binary Search Binary Search
450
1,247(平均 2.8)
337 (74.9%)
3 (0.7%)
Circular Buffer Circular Buffer
342
1,655(平均 4.8)
243 (71.1%)
3 (0.9%)
Clock Clock
542
1,783(平均 3.3)
417 (76.9%)
12 (2.2%)
Collatz Conjecture Collatz Conjecture
359
927(平均 2.6)
304 (84.7%)
4 (1.1%)
Diamond Diamond
317
938(平均 3.0)
232 (73.2%)
1 (0.3%)
Flatten Array Flatten Array
379
1,153(平均 3.0)
295 (77.8%)
7 (1.8%)
ISBN Verifier ISBN Verifier
318
1,081(平均 3.4)
244 (76.7%)
6 (1.9%)
Kindergarten Garden Kindergarten Garden
378
922(平均 2.4)
308 (81.5%)
5 (1.3%)
Perfect Numbers Perfect Numbers
387
1,225(平均 3.2)
329 (85.0%)
7 (1.8%)
Phone Number Phone Number
531
1,966(平均 3.7)
442 (83.2%)
10 (1.9%)
Protein Translation Protein Translation
302
1,140(平均 3.8)
230 (76.2%)
5 (1.7%)
Proverb Proverb
255
785(平均 3.1)
202 (79.2%)
5 (2.0%)
Queen Attack Queen Attack
363
901(平均 2.5)
302 (83.2%)
7 (1.9%)
Robot Name Robot Name
517
1,081(平均 2.1)
414 (80.1%)
7 (1.4%)
Robot Simulator Robot Simulator
357
894(平均 2.5)
279 (78.2%)
10 (2.8%)
Scrabble Score Scrabble Score
493
1,243(平均 2.5)
424 (86.0%)
6 (1.2%)
Secret Handshake Secret Handshake
292
525(平均 1.8)
237 (81.2%)
1 (0.3%)
Sieve Sieve
345
797(平均 2.3)
288 (83.5%)
2 (0.6%)
Strain Strain
351
523(平均 1.5)
287 (81.8%)
2 (0.6%)
Sublist Sublist
296
877(平均 3.0)
221 (74.7%)
4 (1.4%)
Triangle Triangle
520
1,426(平均 2.7)
435 (83.7%)
6 (1.2%)
Bottle Song Bottle Song
119
670(平均 5.6)
72 (60.5%)
2 (1.7%)
Resistor Color Trio Resistor Color Trio
50
132(平均 2.6)
38 (76.0%)
1 (2.0%)
Yacht Yacht
24
80(平均 3.3)
17 (70.8%)
0 (0.0%)
Acronym Acronym
413
1,498(平均 3.6)
270 (65.4%)
8 (1.9%)
All Your Base All Your Base
280
931(平均 3.3)
182 (65.0%)
3 (1.1%)
Allergies Allergies
417
1,087(平均 2.6)
307 (73.6%)
9 (2.2%)
Anagram Anagram
446
1,227(平均 2.8)
376 (84.3%)
13 (2.9%)
House House
200
523(平均 2.6)
143 (71.5%)
1 (0.5%)
Largest Series Product Largest Series Product
218
738(平均 3.4)
163 (74.8%)
6 (2.8%)
Matrix Matrix
262
499(平均 1.9)
191 (72.9%)
0 (0.0%)
Meetup Meetup
232
533(平均 2.3)
147 (63.4%)
2 (0.9%)
Pangram Pangram
237
521(平均 2.2)
183 (77.2%)
4 (1.7%)
Pascal's Triangle Pascal's Triangle
204
384(平均 1.9)
146 (71.6%)
1 (0.5%)
Prime Factors Prime Factors
207
387(平均 1.9)
160 (77.3%)
3 (1.4%)
Pythagorean Triplet Pythagorean Triplet
199
617(平均 3.1)
141 (70.9%)
3 (1.5%)
Rotational Cipher Rotational Cipher
153
443(平均 2.9)
112 (73.2%)
2 (1.3%)
Saddle Points Saddle Points
162
520(平均 3.2)
118 (72.8%)
2 (1.2%)
Say Say
125
398(平均 3.2)
79 (63.2%)
1 (0.8%)
Series Series
231
568(平均 2.5)
172 (74.5%)
1 (0.4%)
Simple Linked List Simple Linked List
236
716(平均 3.0)
161 (68.2%)
0 (0.0%)
Twelve Days Twelve Days
243
446(平均 1.8)
181 (74.5%)
1 (0.4%)
Word Count Word Count
552
988(平均 1.8)
438 (79.3%)
13 (2.4%)
Atbash Cipher Atbash Cipher
136
500(平均 3.7)
106 (77.9%)
1 (0.7%)
Binary Search Tree Binary Search Tree
194
802(平均 4.1)
135 (69.6%)
3 (1.5%)
Crypto Square Crypto Square
131
497(平均 3.8)
94 (71.8%)
0 (0.0%)
Custom Set Custom Set
162
447(平均 2.8)
101 (62.3%)
4 (2.5%)
Food Chain Food Chain
108
233(平均 2.2)
73 (67.6%)
0 (0.0%)
Knapsack Knapsack
45
165(平均 3.7)
29 (64.4%)
0 (0.0%)
Linked List Linked List
176
468(平均 2.7)
120 (68.2%)
6 (3.4%)
Luhn Luhn
157
569(平均 3.6)
116 (73.9%)
5 (3.2%)
OCR Numbers OCR Numbers
117
278(平均 2.4)
74 (63.2%)
2 (1.7%)
Roman Numerals Roman Numerals
180
464(平均 2.6)
130 (72.2%)
3 (1.7%)
Run-Length Encoding Run-Length Encoding
134
372(平均 2.8)
95 (70.9%)
1 (0.7%)
Simple Cipher Simple Cipher
119
308(平均 2.6)
78 (65.5%)
0 (0.0%)
Rail Fence Cipher Rail Fence Cipher
22
40(平均 1.8)
17 (77.3%)
0 (0.0%)
Spiral Matrix Spiral Matrix
22
37(平均 1.7)
18 (81.8%)
0 (0.0%)
Word Search Word Search
23
156(平均 6.8)
17 (73.9%)
0 (0.0%)
Conway's Game of Life Conway's Game of Life
20
34(平均 1.7)
14 (70.0%)
0 (0.0%)
Affine Cipher Affine Cipher
16
19(平均 1.2)
11 (68.8%)
0 (0.0%)
Bowling Bowling
129
389(平均 3.0)
71 (55.0%)
0 (0.0%)
Complex Numbers Complex Numbers
106
289(平均 2.7)
66 (62.3%)
1 (0.9%)
Nth Prime Nth Prime
150
412(平均 2.7)
106 (70.7%)
1 (0.7%)
Palindrome Products Palindrome Products
117
556(平均 4.8)
78 (66.7%)
0 (0.0%)
Pig Latin Pig Latin
119
319(平均 2.7)
75 (63.0%)
2 (1.7%)
Tournament Tournament
116
436(平均 3.8)
83 (71.6%)
2 (1.7%)
Transpose Transpose
109
388(平均 3.6)
69 (63.3%)
0 (0.0%)
Matching Brackets Matching Brackets
149
359(平均 2.4)
111 (74.5%)
1 (0.7%)
Dominoes Dominoes
113
181(平均 1.6)
67 (59.3%)
0 (0.0%)
Flower Field Flower Field
26
40(平均 1.5)
18 (69.2%)
0 (0.0%)
Wordy Wordy
147
438(平均 3.0)
96 (65.3%)
4 (2.7%)
SGF Parsing SGF Parsing
19
129(平均 6.8)
13 (68.4%)
1 (5.3%)
Poker Poker
345
507(平均 1.5)
77 (22.3%)
1 (0.3%)
8 个已弃用的练习
已开始
尝试次数
完成次数
指导请求
Accumulate Accumulate
972
2,234(平均 2.3)
705 (72.5%)
42 (4.3%)
Beer Song Beer Song
182
256(平均 1.4)
133 (73.1%)
1 (0.5%)
Binary Binary
23
35(平均 1.5)
23 (100.0%)
0 (0.0%)
Hexadecimal Hexadecimal
6
6(平均 1.0)
6 (100.0%)
0 (0.0%)
Minesweeper Minesweeper
122
335(平均 2.7)
78 (63.9%)
2 (1.6%)
Octal Octal
14
18(平均 1.3)
14 (100.0%)
0 (0.0%)
Scale Generator Scale Generator
179
385(平均 2.2)
108 (60.3%)
1 (0.6%)
Trinary Trinary
17
23(平均 1.4)
17 (100.0%)
0 (0.0%)
41 个未实现的练习
Alphametics Alphametics
Baffling Birthdays Baffling Birthdays
Bank Account Bank Account
Book Store Book Store
Camicia Camicia
Change Change
Connect Connect
DOT DSL DOT DSL
Eliud's Eggs Eliud's Eggs
Error Handling Error Handling
Forth Forth
Go Counting Go Counting
Intergalactic Transmission Intergalactic Transmission
Killer Sudoku Helper Killer Sudoku Helper
Ledger Ledger
Lens Person Lens Person
Line Up Line Up
Markdown Markdown
Micro Blog Micro Blog
PaaS I/O PaaS I/O
Parallel Letter Frequency Parallel Letter Frequency
Piecing It Together Piecing It Together
Prism Prism
Rational Numbers Rational Numbers
React React
Rectangles Rectangles
Relative Distance Relative Distance
Resistor Color Tolerance Resistor Color Tolerance
REST API REST API
Satellite Satellite
Save the Cow Save the Cow
Split-Second Stopwatch Split-Second Stopwatch
State of Tic-Tac-Toe State of Tic-Tac-Toe
Swift Scheduling Swift Scheduling
Tree Building Tree Building
Two Bucket Two Bucket
Variable Length Quantity Variable Length Quantity
Zebra Puzzle Zebra Puzzle
Zipper Zipper

测试运行器

了解更多

创建只承担单一职责的测试运行器:接收一份解答、运行所有测试,并返回标准化的输出。

当前版本: 4cc42185c72b243a1298d6407f9c4bf7f8a7de33 (部署最多需要 10 分钟)

测试运行器运行总次数
458,084
测试运行通过率
18.4% (84172)
测试运行失败率
22.5% (102880)
测试运行错误率
59.2% (271032)

表示器

了解更多

构建表示器:一小段代码,它唯一的职责就是接收一份解答并返回该解答的规范化表示。

下一个目标:构建表示器。 查看详情。

分析器

了解更多

为 Swift 构建分析器:Exercism 的分析器会自动评估学员的提交,并提供导师式的点评。

下一个目标:构建分析器。 了解更多。