|
21 | 21 | | |`###~###`|
|
22 | 22 | |8|Given a singly linked list of N nodes, find the middle of the linked list. For example, if given linked list is 1->2->3->4->5 then output should be 3. If there are even nodes, then there would be two middle nodes. So we need to print second middle element. Eg., if given linked list is 1->2->3->4->5->6 then output should be 4.|
|
23 | 23 | |9| Input a list having negative and positive integers.
|
24 |
| -<ul><li>Output: Arranging them in increasing order(excluding negative impact).</li> |
25 |
| -<li>Eg: Input: -8,-5,-3,-1,3,6,9</li> |
26 |
| -<li>Output: -1, -3, 3, -5, 6, -8, 9</li> |
27 |
| -<li>Excluding negation, list is 1,3,3,5,6,8,9. So list will be accordingly.</li> |
28 |
| -<li>Order should be followed.(If -3 came before 3, then order should be same i.e., -3,3)</li></ul>| |
| 24 | +| |Output: Arranging them in increasing order(excluding negative impact).| |
| 25 | +| |Eg: Input: -8,-5,-3,-1,3,6,9| |
| 26 | +| |Output: -1, -3, 3, -5, 6, -8, 9| |
| 27 | +| |Excluding negation, list is 1,3,3,5,6,8,9. So list will be accordingly.| |
| 28 | +| |Order should be followed.(If -3 came before 3, then order should be same i.e., -3,3)| |
29 | 29 | |10|Given a list with N numbers and a sum S, find all pairs(2 numbers) from the list which add upto S.
|
30 |
| -<ul><li>Input: list: 1,4,6,45,10,8,8</li> |
31 |
| -<li>Sum: 16</li> |
32 |
| -<li>Output: 10 and 6, 8 and 8</li></ul>| |
| 30 | +| |Input: list: 1,4,6,45,10,8,8| |
| 31 | +| |Sum: 16| |
| 32 | +| |Output: 10 and 6, 8 and 8| |
33 | 33 |
|
34 | 34 | **Ciphers :** This folder contains the encryption and Decryption algorithms.
|
35 | 35 |
|
|
0 commit comments