File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed
2025-07-July-LeetCoding-Challenge Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 1+ class Solution :
2+ def kthCharacter (self , k : int ) -> str :
3+ word = 'a'
4+ while len (word ) < k :
5+ size = len (word )
6+ for i in range (size ):
7+ word += (chr (97 + ((ord (word [i ]) - 97 + 1 ) % 26 )))
8+ return word [k - 1 ]
9+
10+
11+ def main ():
12+ k = 5
13+ assert Solution ().kthCharacter (k ) == 'b'
14+
15+ k = 10
16+ assert Solution ().kthCharacter (k ) == 'c'
17+
18+
19+ if __name__ == '__main__' :
20+ main ()
Original file line number Diff line number Diff line change 55| Day | Problem | Level | Status |
66| --- | --- | --- | --- |
77| July 01 | [ 3330. Find the Original Typed String I] ( https://leetcode.com/problems/find-the-original-typed-string-i/ ) | Easy | Solved |
8- | July 02 | [ ] ( ) | | |
9- | July 03 | [ ] ( ) | | |
8+ | July 02 | [ 3333. Find the Original Typed String II ] ( https://leetcode.com/problems/find-the-original-typed-string-ii/ ) | Hard | Unsolved |
9+ | July 03 | [ 3304. Find the K-th Character in String Game I ] ( https://leetcode.com/problems/find-the-k-th-character-in-string-game-i/ ) | Easy | Solved |
1010| July 04 | [ ] ( ) | | |
1111| July 05 | [ ] ( ) | | |
1212| July 06 | [ ] ( ) | | |
4040## Summary
4141| Level | Problems | Solved | Unsolved |
4242| --- | --- | --- | --- |
43- | Easy | 1 | 1 | 0 |
43+ | Easy | 2 | 2 | 0 |
4444| Medium | 0 | 0 | 0 |
45- | Hard | 0 | 0 | 0 |
45+ | Hard | 1 | 0 | 1 |
You can’t perform that action at this time.
0 commit comments