The following content shows a general structure of a web app, it can be changed based on the different conventions of web frameworks.
- templates (views) # Template files
The following content shows a general structure of a web app, it can be changed based on the different conventions of web frameworks.
- templates (views) # Template files
| """ | |
| Logic: | |
| Is to keep track of first maximum and | |
| second maximum | |
| """ | |
| def max_second_num_from_arr(arr): | |
| if len(arr) < 2: | |
| return "-1" | |
| first_max = max(arr[0], arr[1]) | |
| second_max = min(arr[0], arr[1]) |
| You can create a new empty branch like this: | |
| $ git checkout --orphan NEWBRANCH | |
| --orphan creates a new branch, but it starts without any commit. After running the above command you are on a new branch "NEWBRANCH", and the first commit you create from this state will start a new history without any ancestry. | |
| The --orphan command keeps the index and the working tree files intact in order to make it convenient for creating a new history whose trees resemble the ones from the original branch. | |
| Since you want to create a new empty branch that has nothing to do with the original branch, you can delete all files in the new working directory: |