Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17 - masala, matndagi harflar yig'indisi #8

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions Lab 7 - Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,3 +480,40 @@ Har bir `testcase` uchun shahzoda nechta planeta chegarasini kesib o'tishga majb
| Input | Output |
| - | - |
| `2`<br>`-5 1 12 1`<br>`7`<br>`1 1 8`<br>`-3 -1 1`<br>`2 2 2`<br>`5 5 1`<br>`-4 5 1`<br>`12 1 1`<br>`12 1 2`<br>`-5 1 5 1`<br>`1`<br>` 0 0 2` | `3`<br>`0` |

<br>

## Oxirgi so'z uzunligini top
wahidustoz marked this conversation as resolved.
Show resolved Hide resolved
<br>

`String`dagi harflar sonini topib, qaytaruvchi funksiya / metod yozing va o'sha funksiyadan foydalanib, `input`ga kiritilgan `string` dagi harflar sonini chop eting.

Muhammad-Diyor marked this conversation as resolved.
Show resolved Hide resolved
<br>

> Tinish belgilari, bo'shliq (space) harflar soniga kiritilmasin.
wahidustoz marked this conversation as resolved.
Show resolved Hide resolved

### Input
```
Bir yoki undan ko'proq so'zlardan iborat matn
```
wahidustoz marked this conversation as resolved.
Show resolved Hide resolved
### Output
```
Matndagi harflar sonini ifodalovchi son
```
wahidustoz marked this conversation as resolved.
Show resolved Hide resolved

<br>

### Sample input 1
Muhammad-Diyor marked this conversation as resolved.
Show resolved Hide resolved
| Input | Output |
|-------|---- |
|Hello world | 10|

### Sample input
wahidustoz marked this conversation as resolved.
Show resolved Hide resolved
|Input| Output |
|-----|--------|
| Meva-chevalar: anor, olma | 20 |

### Sample input 1
wahidustoz marked this conversation as resolved.
Show resolved Hide resolved
| Input | Output |
|-------|---- |
| %$#! - , ?: &^ | 0|