Skip to content

Commit ea590e2

Browse files
Merge pull request #1 from surbhimahajan93/replit-readme
Merging the Replit branch
2 parents a4d4c09 + ebb7986 commit ea590e2

File tree

6 files changed

+21
-38
lines changed

6 files changed

+21
-38
lines changed

.replit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
language = "java10"
2+
run = "javac MergeSort.java; java MergeSort"

MergeSort.class

1.11 KB
Binary file not shown.

MergeSort.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package com.opentext.ezt.invoice.controller;
21

32

4-
public class DoNotCommit {
3+
4+
public class MergeSort {
55

66
public static void main(String args[]) {
77
//input array

README.md

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,5 @@
1-
## Welcome to GitHub Pages
1+
Just an attempt to help the community with some basic data structures and algorithm programs.(written in Java).
2+
Please feel free to comment if you would like me to help you out in case you are struck.
23

3-
You can use the [editor on GitHub](https://github.com/surbhimahajan93/SortingRepo/edit/master/README.md) to maintain and preview the content for your website in Markdown files.
4-
5-
Whenever you commit to this repository, GitHub Pages will run [Jekyll](https://jekyllrb.com/) to rebuild the pages in your site, from the content in your Markdown files.
6-
7-
### Markdown
8-
9-
Markdown is a lightweight and easy-to-use syntax for styling your writing. It includes conventions for
10-
11-
```markdown
12-
Syntax highlighted code block
13-
14-
# Header 1
15-
## Header 2
16-
### Header 3
17-
18-
- Bulleted
19-
- List
20-
21-
1. Numbered
22-
2. List
23-
24-
**Bold** and _Italic_ and `Code` text
25-
26-
[Link](url) and ![Image](src)
27-
```
28-
29-
For more details see [GitHub Flavored Markdown](https://guides.github.com/features/mastering-markdown/).
30-
31-
### Jekyll Themes
32-
33-
Your Pages site will use the layout and styles from the Jekyll theme you have selected in your [repository settings](https://github.com/surbhimahajan93/SortingRepo/settings). The name of this theme is saved in the Jekyll `_config.yml` configuration file.
34-
35-
### Support or Contact
36-
37-
Having trouble with Pages? Check out our [documentation](https://help.github.com/categories/github-pages-basics/) or [contact support](https://github.com/contact) and we’ll help you sort it out.
4+
Happy coding. :)
5+
[![Run on Repl.it](https://repl.it/badge/github/surbhimahajan93/JavaPrograms)](https://repl.it/github/surbhimahajan93/JavaPrograms)

ReverseStringWithSb.class

707 Bytes
Binary file not shown.

ReverseStringWithSb.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
class ReverseStringWithSb{
3+
public static void main(String[] args){
4+
String input ="My name is Surbhi";
5+
System.out.println(reverse(input));
6+
}
7+
8+
public static String reverse(String s){
9+
StringBuilder sb = new StringBuilder(s);
10+
sb.reverse();
11+
return sb.toString();
12+
}
13+
}

0 commit comments

Comments
 (0)