8000 Feature: Added partial description for finding first uppercase instan… · syedumerahmedcode/recursion@8518596 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8518596

Browse files
Feature: Added partial description for finding first uppercase instance in a string section of the readme file.
1 parent f5e34bd commit 8518596

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- [Recursive range](#recursive-range)
1616
- [Reverse](#reverse)
1717
- [Palindrome](#palindrome)
18+
- [First uppercase](#first-uppercase)
1819
- [Project structure](#project-structure)
1920
- [Technologies Used](#technologies-used)
2021
- [Prerequisities](#prerequisities)
@@ -263,6 +264,29 @@ So, the formula for palindrome turns out to be, `f(str) = f();`.
263264

264265
![To be inserted](A link which is not working)
265266

267+
## First uppercase
268+
269+
We create a function for finding the _first uppercase instance_ of an alphabet in a given string using recursion.
270+
271+
A simple example of this method is as follows:
272+
273+
```text
274+
findUppercase('transL')
275+
-->checkCharacterAt(0)
276+
-->if true
277+
---->return charAt(0)
278+
-->if false
279+
---->findUppercase(subString(1 till endOfinpuString)
280+
--> goto checkCharacterAt(0)
281+
```
282+
283+
So, the formula for finding first uppercase alphabet in a string turns out to be, `f(str) = f();`.
284+
285+
**Visual description**
286+
287+
![To be inserted](A link which is not working)
288+
289+
266290

267291
## Project structure
268292

0 commit comments

Comments
 (0)
0