<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>Remake of Grade 11 CS by </title>
      <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd</link>
      <description>ADTs</description>
      <language>en-us</language>
      <pubDate>2021-08-03 06:39:59 UTC</pubDate>
      <lastBuildDate>2021-08-06 17:53:15 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Samarth</title>
         <author></author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667554227</link>
         <description><![CDATA[<div><strong>Interchange Diagonals:</strong><br>public static void interchange(int[][] array){<br>&nbsp; &nbsp; int length = array.length();<br>&nbsp; &nbsp; for (int i = 0; i &lt; length; i++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong>if</strong> (i != length / 2)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <strong>int</strong> temp = array[i][i];</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[i][i] = array[i][length - i - 1];</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[i][length - i - 1] = temp;<br>&nbsp; &nbsp; }<br>}<br><br><strong>Rotate Array:<br></strong>public static void rotateMatrix(int[][] array){<br>&nbsp; &nbsp; &nbsp; &nbsp; int length = array.length();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; for (int x = 0; x &lt; length / 2; x++) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int y = x; y &lt; length - x - 1; y++) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int temp = array[x][y];</div><div>&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mat[x][y] = array[y][length - 1 - x];</div><div>&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[y][length - 1 - x]</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = array[length - 1 - x][length - 1 - y];</div><div>&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[length - 1 - x][length - 1 - y] = array[length - 1 - y][x];</div><div>&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[length - 1 - y][x] = temp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div><br><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-03 06:45:54 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667554227</guid>
      </item>
      <item>
         <title>Harish</title>
         <author></author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667555172</link>
         <description><![CDATA[<div><strong>Interchange Diagonals</strong><br>interChangeDiagonals(arr){	<br>&nbsp; &nbsp;for i from 0 to arr[0].length() {		<br>&nbsp; &nbsp; &nbsp; &nbsp;temp = arr[i][i]		<br>&nbsp; &nbsp; &nbsp; &nbsp;arr[i][i] = arr[i][arr[0].length() - i -1]		<br>&nbsp; &nbsp; &nbsp; &nbsp;arr[i][arr[0].length() - i -1] = temp	<br>&nbsp; &nbsp;}	<br>&nbsp; &nbsp;return arr<br>}<br><br>arr[][] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}<br>interChangeDiagonals(arr)<br>for int i from 0 to arr[0].length() {	<br>&nbsp; &nbsp;for int j from 0 to arr[0].length() {		<br>&nbsp; &nbsp; &nbsp; &nbsp;output(arr[i][j])<br>&nbsp; &nbsp; }<br>}<br><br><strong>Sum</strong><br>sumOfArray(int arr[][]) {<br>	sum = 0<br>	for int i from 0 to arr[0].length() {	<br>		for int j from 0 to arr[0].length() {		<br>			sum += arr[i][j]<br>&nbsp; &nbsp; }<br>	output sum<br>}<br>}<br><br>arr[][] = {{1,2,3}, {4,5,6}, {7,8,9}}<br>sumOfArray(arr)<br><br><strong>Swap Rows</strong><br>swapRows(int arr[][], int row1, int row2) {<br>	temp&nbsp; = arr[row2]<br>	arr[row2] = arr[row1]<br>	arr[row1] = temp<br>	return arr<br>}<br><br>arr[][] = {{1,2,3}, {4,5,6}, {7,8,9}}<br>row1 = input("Please enter a row you would like to swap")<br>row2 = input("Please enter the row you would like to swap with")<br>swapRows(arr, row1, row2)<br>for int i from 0 to arr[0].length() {	<br>&nbsp; &nbsp; for int j from 0 to arr[0].length() {		<br>		output(arr[i][j])<br>&nbsp; &nbsp; }<br>}<br><br><strong>Swap Columns</strong><br>swapCols(int arr[][], int col1, int col2) {<br>	for i from 0 to arr[0].length {<br>		temp&nbsp; = arr[1][col1]<br>		arr[i][col1] = arr[i][col2]<br>		arr[i][col2]&nbsp; = temp<br>	}<br>	return arr<br>}<br><br>arr[][] = {{1,2,3}, {4,5,6}, {7,8,9}}<br>col1 = input("Please enter a column you would like to swap")<br>col2 = input("Please enter the column you would like to swap with")<br>swapCols(arr, col1, col2)<br>for int i from 0 to arr[0].length() {	<br>&nbsp; &nbsp; for int j from 0 to arr[0].length() {		<br>		output(arr[i][j])<br>&nbsp; &nbsp; }<br>}<br><br><strong>Upper Triangle</strong><br>upperTriangle(int arr[][]) {<br>	for i from 0 to arr[0].length {<br>		for j from from 0 to arr[0].length {<br>			if j &gt; i {<br>				output(arr[i][j])<br>			}<br>			output()<br>		}<br>	}<br>}<br><br>arr[][] = {{1,2,3}, {4,5,6}, {7,8,9}}<br>upperTriangle(arr)<br>for int i from 0 to arr[0].length() {	<br>&nbsp; &nbsp; for int j from 0 to arr[0].length() {		<br>		output(arr[i][j])<br>&nbsp; &nbsp; }<br>}<br><br><strong>Lower Triangle</strong><br>lowerTriangle(int arr[][]) {<br>	for i from 1 to arr[0].length {<br>		for j from from 0 to i {<br>			if j &lt; i {<br>				output(arr[i][j])<br>			}<br>			output()<br>		}<br>	}<br>}<br><br>arr[][] = {{1,2,3}, {4,5,6}, {7,8,9}}<br>lowerTriangle(arr)<br>for int i from 0 to arr[0].length() {	<br>&nbsp; &nbsp; for int j from 0 to arr[0].length() {		<br>		output(arr[i][j])<br>&nbsp; &nbsp; }<br>}<br><br><strong>Rotate 90<br></strong>rotate90(int arr[][]){<br>	len = arr[0].length<br>	for i from 0 to len/2 {<br>		for j from i to len - i - 1 {<br>			temp = arr[i][j]<br>			arr[i][j] = arr[len - 1 - j][i]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[len - 1 - j][i] = arr[len - 1 - i][len - 1 - j]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[len - 1 - i][len - 1 - j] = arr[j][len - 1 - i]<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[j][len - 1 - i] = temp<br>		}<br>	}<br>	for int i from 0 to arr[0].length() {	<br>		for int j from 0 to arr[0].length() {		<br>			output(arr[i][j])<br>		}<br>	}<br>}<br><br>arr[][] = {{1,2,3}, {4,5,6}, {7,8,9}}<br>rotate90(arr)<br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-03 06:47:00 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667555172</guid>
      </item>
      <item>
         <title>Priyansh</title>
         <author>priyanshbhatter</author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667558729</link>
         <description><![CDATA[<div>class swapdiagonals</div><div>{</div><div>&nbsp; &nbsp; <em>public</em> <em>static</em> void main(String args[]){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; int a[][]={{3,5,2}, {5,6,3}, {5,7,2}};</div><div>&nbsp; &nbsp; &nbsp; &nbsp; int ai,aii,bi,bii,t;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <em>if</em>(a.length()==a[0].length()){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <em>for</em>(int i=0;i&lt;a.length();i++){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <em>for</em>(int j=0;j&lt;a.length();j++){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <em>if</em>(i==j){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ai=i;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bi=j;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <em>if</em>(i+j==a.length()-1){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aii=i;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bii=j;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t=a[ai][bi];</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a[ai][bi]=a[aii][bii];</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a[aii][bii]=t;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-03 06:50:45 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667558729</guid>
      </item>
      <item>
         <title>Krithik</title>
         <author></author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667566058</link>
         <description><![CDATA[<div>public static void switchDiag(int[][] c) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int i = 0;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int j = c[0].length-1;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int k = 0;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while(k&lt;c.length &amp;&amp; i&lt;c[0].length){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int temp = c[k][i];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; c[k][i] = c[k][j];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; c[k][j] = temp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; j--;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; k++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int x = 0; x&lt;c.length; x++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int y = 0; y&lt;c[0].length; y++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(c[x][y] + " ");<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-03 06:58:46 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667566058</guid>
      </item>
      <item>
         <title>Priyansh- rotated matrix </title>
         <author>priyanshbhatter</author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667570110</link>
         <description><![CDATA[<div>public class rotatingmatrix {</div><div>&nbsp; &nbsp; <em>public</em> <em>static</em> void main(String args[]) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; int a[][] = { { 3, 5, 2 }, { 5, 6, 3 }, { 5, 7, 2 } };</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; int rotated[][] = <em>new</em> int[3][3];</div><div>&nbsp; &nbsp; &nbsp; &nbsp; int k = 2;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <em>for</em> (int i = 0; i &lt; 3; i++) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <em>for</em> (int j = 0; j &lt; 3; j++) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rotated[j][k] = a[i][j];</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; k--;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <em>for</em> (int i = 0; i &lt; 3; i++) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <em>for</em> (int j = 0; j &lt; 3; j++) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(rotated[i][j] + " ");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.println();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; }</div><div>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-03 07:02:54 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667570110</guid>
      </item>
      <item>
         <title>Rotated Matrix - Krithik</title>
         <author></author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667614181</link>
         <description><![CDATA[<div>Clockwise 90˚:<br>public static int[][] rotate(int[][] a){<br>&nbsp; &nbsp; &nbsp; &nbsp; int[][] x = new int[a[0].length][a.length];<br>&nbsp; &nbsp; &nbsp; &nbsp; for(int i = 0; i&lt;a.length; i++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int j = 0; j&lt;a[0].length; j++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x[j][a.length-i-1] = a[i][j];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; return x;<br>&nbsp; &nbsp; }<br><br>Anticlockwise 90˚:<br>public static int[][] minusrotate(int[][] a){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int[][] x = new int[a[0].length][a.length];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int i = 0; i&lt;a.length; i++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int j = 0; j&lt;a[0].length; j++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x[j][i] = a[i][a[0].length-j-1];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return x;<br>&nbsp; &nbsp; &nbsp; &nbsp; }</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-03 07:59:39 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1667614181</guid>
      </item>
      <item>
         <title>Aman- Swap Diagonal</title>
         <author>aman_s2613617</author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1668050016</link>
         <description><![CDATA[<div>import java.util.*;<br>import java.lang.Math.*;<br><br>public class SWAPDIAG{<br>&nbsp; &nbsp; public static void main(String [] args){<br>&nbsp; &nbsp; &nbsp; &nbsp; int[][] arr = {{1, 2, 3}, {4, 5, 6}, {7, 8 ,9}};<br>&nbsp; &nbsp; &nbsp; &nbsp; int temp = 0;<br>&nbsp; &nbsp; &nbsp; &nbsp; for (int i=0 ; i&lt;3 ; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int j=0 ; j&lt;3 ; j++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (i==j) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp = arr[i][j];&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[i][j] = arr[i][arr[i].length-1-i];<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arr[i][arr[i].length-1-i] = temp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp;for (int c=0 ; c&lt;3;c++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int d=0;d&lt;3;d++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(arr[c][d]+" ");<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println ("&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp;&nbsp;<br><br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-03 17:35:26 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1668050016</guid>
      </item>
      <item>
         <title>Upper Triangular Check</title>
         <author>aman_s2613617</author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1668562231</link>
         <description><![CDATA[<div>import java.util.*;<br>import java.lang.Math.*;<br><br>public class UpperTriangular<br>{<br>&nbsp; &nbsp; public static void main(String [] args){<br>&nbsp; &nbsp; &nbsp; &nbsp;/* Input */<br>&nbsp; &nbsp; &nbsp; &nbsp;Scanner inp = new Scanner(System.in);&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;System.out.println("Enter the Size of the Matrix you want:");<br>&nbsp; &nbsp; &nbsp; &nbsp;int size = inp.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp;int[][]array = new int[size][size];<br>&nbsp; &nbsp; &nbsp; &nbsp;System.out.println("Enter the numbers in the Matrix:");<br>&nbsp; &nbsp; &nbsp; &nbsp;for (int a =0; a&lt;size; a++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int b=0; b &lt;size; b++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[a][b] = inp.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp;/* Print */&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;for (int c=0 ; c&lt;size;c++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int d=0;d&lt;size;d++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(array[c][d]+" ");<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println ("&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp;/* Check Diagonal */&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;int sum =0;<br>&nbsp; &nbsp; &nbsp; &nbsp;for (int i =0; i&lt;size; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int j =0; j&lt;i; j++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sum = array[i][j] + sum;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;if (sum&gt;0) {<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println ("This is not a Upper Triangular Matrix");<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp;if (sum==0) {<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println ("This is a Upper Triangular Matrix");<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-04 05:15:09 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1668562231</guid>
      </item>
      <item>
         <title>Lower Triangular Matrix</title>
         <author>aman_s2613617</author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1668568220</link>
         <description><![CDATA[<div>import java.util.*;<br>import java.lang.Math.*;<br><br>public class LowerTriangle {<br>&nbsp; &nbsp; public static void main(String [] args){<br>&nbsp; &nbsp; &nbsp; &nbsp;/* Input */<br>&nbsp; &nbsp; &nbsp; &nbsp;Scanner inp = new Scanner(System.in);&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;System.out.println("Enter the Size of the Matrix you want:");<br>&nbsp; &nbsp; &nbsp; &nbsp;int size = inp.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp;int[][]array = new int[size][size];<br>&nbsp; &nbsp; &nbsp; &nbsp;System.out.println("Enter the numbers in the Matrix:");<br>&nbsp; &nbsp; &nbsp; &nbsp;for (int a =0; a&lt;size; a++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int b=0; b &lt;size; b++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array[a][b] = inp.nextInt();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp;/* Print */&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;for (int c=0 ; c&lt;size;c++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int d=0;d&lt;size;d++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.out.print(array[c][d]+" ");<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println ("&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ");<br>&nbsp; &nbsp; &nbsp; &nbsp;}<br>&nbsp; &nbsp; &nbsp; &nbsp;/* Check Diagonal */&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp;int sum =0;<br>&nbsp; &nbsp; &nbsp; &nbsp;for (int i =0; i&lt;size; i++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int j =i+1; size&gt;j; j++) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sum = array[i][j] + sum;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println (sum);<br>&nbsp; &nbsp; &nbsp; &nbsp;if (sum&gt;0) {<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println ("This is not a Lower Triangular Matrix");<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp;if (sum==0) {<br>&nbsp; &nbsp; &nbsp; &nbsp; System.out.println ("This is a Lower Triangular Matrix");<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; }<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-04 05:22:31 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1668568220</guid>
      </item>
      <item>
         <title>N Spiral Matrix - Krithik</title>
         <author></author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1668574259</link>
         <description><![CDATA[<div>public static int[][] spiral(int g){<br>&nbsp; &nbsp; &nbsp; &nbsp; int[][] x = new int[g][g];<br>&nbsp; &nbsp; &nbsp; &nbsp; int l = 0;<br>&nbsp; &nbsp; &nbsp; &nbsp; int k = 0;<br>&nbsp; &nbsp; &nbsp; &nbsp; int j = g-1;<br>&nbsp; &nbsp; &nbsp; &nbsp; int i = g-1;<br>&nbsp; &nbsp; &nbsp; &nbsp; int n = 0;<br>&nbsp; &nbsp; &nbsp; &nbsp; while(i&gt;=k || j&gt;=l){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int f = k; f&lt;=i; f++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x[l][f] = n;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int b = l; b&lt;=j;b++){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x[b][i] = n;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i--;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int c = i; c&gt;=k; c--){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x[j][c] = n;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; l++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; j--;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int z = j; z&gt;=l; z--){<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x[z][k] = n;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; k++;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; n--;<br>&nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; return x;<br>&nbsp; &nbsp; &nbsp; &nbsp; }</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-04 05:30:32 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1668574259</guid>
      </item>
      <item>
         <title>Manas - Interchange Diagonals</title>
         <author></author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1669560789</link>
         <description><![CDATA[<div>import java.util.Scanner;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br><br>public class InterchangeDiagonals2<br>{<br>	public static void interchangeDiagonals(int[][] arr)<br>	{<br>		int i = 0;<br>		int j = 0;<br>		int temp = 0;<br>		<br>                 //interchange<br>		for (i = 0; i &lt; arr.length; i++)<br>		{<br>			temp = arr[i][(arr[i].length - 1)-i];<br>			arr[i][(arr[i].length - 1)-i] = arr[i][i];<br>			arr[i][i] = temp;<br>			<br>		}<br>                 //print arr<br>		for (i = 0; i &lt; arr.length; i++)<br>		{<br>			for(j = 0; j &lt; arr[i].length; j++)<br>			{<br>				System.out.print(arr[i][j]+" ");<br>			}<br>			System.out.println();<br>		}<br><br>		<br>	}<br>	public static void main(String[]args)<br>	{<br>		Scanner sc = new Scanner(System.in);<br><br>		int[][] arr =&nbsp;<br>		{<br>			/*{ 3,24, 2, 6},<br>			{ 5,23,45,65},<br>			{23,54, 8,23},<br>			{ 2,32,18, 9},*/<br>			{ 1, 0, 0, 0},<br>			{ 0, 1, 0, 0},<br>			{ 0, 0, 1, 0},<br>			{ 0, 0, 0, 1},<br>		};<br>                 //print arr<br>		for (int i = 0; i &lt; arr.length; i++)<br>		{<br>			for(int j = 0; j &lt; arr[i].length; j++)<br>			{<br>				System.out.print(arr[i][j]+" ");<br>			}<br>			System.out.println();<br>		}<br><br>		<br><br>		interchangeDiagonals(arr);		<br>	}<br>}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-05 03:22:17 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1669560789</guid>
      </item>
      <item>
         <title>Manas - InterchangeColumns</title>
         <author></author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1669591169</link>
         <description><![CDATA[<div>public static void interchangeColumns(int[][] arr, int c1, nt c2)<br>{<br>	int i = 0;<br>	int j = 0;<br>	int temp = 0;<br>	<br>	for (i = 0; i &lt; arr.length; i++)<br>	{<br>		temp = arr[i][c1];<br>		arr[i][c1] = arr[i][c2];<br>		arr[i][c2] = temp;		<br>	}<br>	for (i = 0; i &lt; arr.length; i++)<br>	{<br>		for(j = 0; j &lt; arr[i].length; j++)<br>		{<br>			if (arr[i][j] &lt; 10)<br>			{<br>				System.out.print(" ");<br>			}<br>			System.out.print(arr[i][j]+",");<br>		}<br>		System.out.println();<br>	}<br>}	</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-05 03:53:55 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1669591169</guid>
      </item>
      <item>
         <title>Manas - LowerTriangularMatrix</title>
         <author></author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1669597297</link>
         <description><![CDATA[<div>public static void Lcheck(int[][] arr)<br>{<br>	int i;<br>	int j;<br>	int k;<br>	int temp = 0;<br>	<br>	System.out.println();<br><br>	for (i = 1; i &lt; arr.length; i++)<br>	{<br>		for (j = 1; j &lt;= i; j++)<br>		{<br>			if (arr[i-j][i] != 0)<br>			{<br>				System.out.println("This is not a lower triangular matrix.");<br>				System.exit(0);<br>			}<br>		}<br>	}<br><br>	System.out.println("This is a lower triangular matrix.")<br>}<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-05 03:59:56 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1669597297</guid>
      </item>
      <item>
         <title>Manas - UpperTriangularMatrix</title>
         <author></author>
         <link>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1671254749</link>
         <description><![CDATA[<div>public static void Ucheck(int[][] arr)<br>	{<br>		int i;<br>		int j;<br>		int k;<br>		int temp = 0;<br>		<br>		System.out.println();<br><br>		for (i = 0; i &lt; (arr.length-1); i++)<br>		{<br>			for (j = 1; j &lt;= i; j++)<br>			{<br>				if (arr[i+j][i] != 0)<br>				{<br>					System.out.println("This is not an upper triangular matrix.");<br>					System.exit(0);<br>				}<br>			}<br>		}<br><br>		System.out.println("This is an upper triangular matrix.");<br><br>		for (i = 0; i &lt; arr.length; i++)<br>		{<br>			for(j = 0; j &lt; arr[i].length; j++)<br>			{<br>				System.out.print(arr[i][j]+" ");<br>			}<br>			System.out.println();<br>		}		<br>	}</div>]]></description>
         <enclosure url="" />
         <pubDate>2021-08-06 17:52:15 UTC</pubDate>
         <guid>https://padlet.com/dilectinhepzibahd/hpmniqzviq7v2xjd/wish/1671254749</guid>
      </item>
   </channel>
</rss>
