Skip to content

Commit 07f99ba

Browse files
authored
GH-215: String in General (#216)
1 parent 84af7e7 commit 07f99ba

File tree

6 files changed

+40
-6
lines changed

6 files changed

+40
-6
lines changed

.github/ISSUE_TEMPLATE/new-article.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ body:
3535
- Set
3636
- Hash Table
3737
- Tree
38+
- Big-O
39+
- Bitwise
3840
- Sorting
3941
- Searching
4042
- Brute force, Backtracking
4143
- Greedy
42-
- Big-O
43-
- Bitwise
4444
- Range queries (prefix sum)
4545
- Dynamic Programming (Basic)
4646
- Dynamic Programming (Intermediate)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ A data structure is a data organization, management, and storage format that is
6868
<a href="/concepts/general/array/README.md">Array</a>
6969
</li>
7070
<li>
71-
<code>B</code> String
72-
<a href="/concepts/python/string.md"><code>py🐍</code></a>
71+
<code>B</code>
72+
<a href="/concepts/general/string/README.md">String</a>
7373
</li>
7474
<li>
7575
<code>B</code> Linked List

concepts/general/array/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Array
22

3-
*See implementation in* [C++](/concepts/cpp/array/README.md), Java, [Python](/concepts/python/array/README.md), [Typescript](/concepts/typescript/array/README.md)
3+
*See implementation in*
4+
[C++](/concepts/cpp/array/README.md),
5+
Java,
6+
[Python](/concepts/python/array/README.md),
7+
[Typescript](/concepts/typescript/array/README.md)
48

59
An array is a data structure that contains a group of elements. Each element can be accessed using an index. The index of the first element is 0, and the index of the last element is the length of the array minus 1.
610

concepts/general/string/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# String
2+
3+
*See implementation in*
4+
C++,
5+
Java,
6+
[Python](/concepts/python/string/README.md),
7+
Typescript
8+
9+
In competitive programming, programmers use strings or arrays to store and manipulate sequences of characters. This data structure is straightforward, fast, and easy to use.
10+
11+
## String Operations
12+
13+
Here are some basic operations that you can perform on strings:
14+
15+
* Initialization: Create a string with given value
16+
* Accessing Characters: Access a character by its index (zero-based)
17+
* Updating Characters: Update a character by its index
18+
* Traversal: Visit all characters of the string
19+
* Length: Get the number of characters in the string
20+
* Substring: Extract a portion of the string
21+
* Comparison: Compare two strings for equality
22+
* Reversal: Reverse the order of characters in the string
23+
* Uppercase: Convert all characters in the string to uppercase
24+
* Lowercase: Convert all characters in the string to lowercase
25+
26+
## 🔗 Further Reading
27+
28+
* [String (computer science)](https://en.wikipedia.org/wiki/String_(computer_science)), wikipedia
29+
* ▶️ [Strings](https://youtu.be/tI_tIZFyKBw?t=5369), CS50
30+
* ▶️ [CS50 Explained 2016 - Week 2 - Strings](https://www.youtube.com/watch?v=XLd2C9bF6_Q&ab_channel=CS50), CS50
File renamed without changes.

readme/python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ A data structure is a data organization, management, and storage format that is
2424
<a href="/concepts/python/array/README.md">Array</a>
2525
</li>
2626
<li><code>B</code>
27-
<a href="/concepts/python/string.md">String</a>
27+
<a href="/concepts/python/string/README.md">String</a>
2828
</li>
2929
<li>
3030
<code>B</code>

0 commit comments

Comments
 (0)