diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..e208459
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..7d55746
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/HelloWorld.java b/HelloWorld.java
index 702cb8e..8b20ecc 100644
--- a/HelloWorld.java
+++ b/HelloWorld.java
@@ -1,4 +1,4 @@
-class HelloWorld {
+public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
diff --git a/HelloWorldUsingMethod.java b/HelloWorldUsingMethod.java
new file mode 100644
index 0000000..d6cdc13
--- /dev/null
+++ b/HelloWorldUsingMethod.java
@@ -0,0 +1,9 @@
+public class HelloWorldUsingMethod {
+ static void hello_world(){
+ System.out.println("Hello World");
+ }
+
+ public static void main(String[] args) {
+ hello_world();
+ }
+}
diff --git a/Programming_basics.iml b/Programming_basics.iml
new file mode 100644
index 0000000..b107a2d
--- /dev/null
+++ b/Programming_basics.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/hello_world.java b/hello_world.java
deleted file mode 100644
index 37cc814..0000000
--- a/hello_world.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-class HelloWorld
-{
- // Your program begins with a call to main().
- // Prints "Hello, World" to the terminal window.
- public static void main(String args[])
- {
- System.out.println("Hello, World");
- }
-}
-
diff --git a/out/production/Programming_basics/.github/workflows/blank.yml b/out/production/Programming_basics/.github/workflows/blank.yml
new file mode 100644
index 0000000..9ddbd2e
--- /dev/null
+++ b/out/production/Programming_basics/.github/workflows/blank.yml
@@ -0,0 +1,33 @@
+# This is a basic workflow to help you get started with Actions
+
+name: CI
+
+# Controls when the action will run. Triggers the workflow on push or pull request
+# events but only for the master branch
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ build:
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v2
+
+ # Runs a single command using the runners shell
+ - name: Run a one-line script
+ run: echo Hello, world!
+
+ # Runs a set of commands using the runners shell
+ - name: Run a multi-line script
+ run: |
+ echo Add other actions to build,
+ echo test, and deploy your project.
diff --git a/out/production/Programming_basics/.idea/.gitignore b/out/production/Programming_basics/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/out/production/Programming_basics/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/out/production/Programming_basics/.idea/misc.xml b/out/production/Programming_basics/.idea/misc.xml
new file mode 100644
index 0000000..e208459
--- /dev/null
+++ b/out/production/Programming_basics/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/out/production/Programming_basics/.idea/modules.xml b/out/production/Programming_basics/.idea/modules.xml
new file mode 100644
index 0000000..7d55746
--- /dev/null
+++ b/out/production/Programming_basics/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/out/production/Programming_basics/.idea/vcs.xml b/out/production/Programming_basics/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/out/production/Programming_basics/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/out/production/Programming_basics/HelloWorld.class b/out/production/Programming_basics/HelloWorld.class
new file mode 100644
index 0000000..fb9f6b0
Binary files /dev/null and b/out/production/Programming_basics/HelloWorld.class differ
diff --git a/out/production/Programming_basics/HelloWorldUsingMethod.class b/out/production/Programming_basics/HelloWorldUsingMethod.class
new file mode 100644
index 0000000..987727a
Binary files /dev/null and b/out/production/Programming_basics/HelloWorldUsingMethod.class differ
diff --git a/out/production/Programming_basics/HourGlass_Challenge b/out/production/Programming_basics/HourGlass_Challenge
new file mode 100644
index 0000000..f04ab74
--- /dev/null
+++ b/out/production/Programming_basics/HourGlass_Challenge
@@ -0,0 +1,49 @@
+//HourGlass_Challenge solution in java language
+
+import java.util.Scanner;
+
+class hourGlass_Challenge{
+
+static int findMaxSum(int [][]mat, int n)
+{
+ int row = n;
+ int column = n;
+ if (row < 3 || column < 3)
+ return -1;
+
+ int maxSum = Integer.MIN_VALUE;
+ for (int i = 0; i < row - 2; i++)
+ {
+ for (int j = 0; j < column - 2; j++)
+ {
+ int sum = (mat[i][j] + mat[i][j + 1] +
+ mat[i][j + 2]) + (mat[i + 1][j + 1]) +
+ (mat[i + 2][j] + mat[i + 2][j + 1] +
+ mat[i + 2][j + 2]);
+
+ maxSum = Math.max(maxSum, sum);
+ }
+ }
+ return maxSum;
+}
+
+static public void main (String[] args)
+ {
+ Scanner s = new Scanner(System.in);
+ int input = s.nextInt();
+ int [][]mat = new int[n][n]
+ for(int i = 0; i< n; i++){
+ for(int j = 0; j< n; j++){
+ mat[i][j] = s.nextInt();
+ }
+ }
+
+ int res = findMaxSum(mat, input);
+ if (res == -1)
+ System.out.println("Not possible");
+ else
+ System.out.println("Maximum sum of hour glass = "
+ + res);
+ }
+
+}
diff --git a/out/production/Programming_basics/LICENSE b/out/production/Programming_basics/LICENSE
new file mode 100644
index 0000000..6def885
--- /dev/null
+++ b/out/production/Programming_basics/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Ayush Das
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/out/production/Programming_basics/Programming_basics.iml b/out/production/Programming_basics/Programming_basics.iml
new file mode 100644
index 0000000..b107a2d
--- /dev/null
+++ b/out/production/Programming_basics/Programming_basics.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/out/production/Programming_basics/README.md b/out/production/Programming_basics/README.md
new file mode 100644
index 0000000..80a4071
--- /dev/null
+++ b/out/production/Programming_basics/README.md
@@ -0,0 +1,7 @@
+# Programming_basics
+# code in java to print hello_world
+public class Hello_world {
+ public static void main(String [] args) {
+ System.out.println("Hello_world");
+
+}}
diff --git a/out/production/Programming_basics/hourglass_challenge_java b/out/production/Programming_basics/hourglass_challenge_java
new file mode 100644
index 0000000..d9dbbb7
--- /dev/null
+++ b/out/production/Programming_basics/hourglass_challenge_java
@@ -0,0 +1,50 @@
+// C++ program to find maximum sum of hour
+// glass in matrix
+#include
+using namespace std;
+const int R = 5;
+const int C = 5;
+
+// Returns maximum sum of hour glass in ar[][]
+int findMaxSum(int mat[R][C])
+{
+ if (R<3 || C<3)
+ return -1;
+
+ // Here loop runs (R-2)*(C-2) times considering
+ // different top left cells of hour glasses.
+ int max_sum = INT_MIN;
+ for (int i=0; i