Java
Java Program to Display Odd Numbers From 1 to 100 #Source_code #83
#Outout for this program is:
List of odd numbers from 1 to 100:
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99
List of odd numbers from 1 to 100:
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99
code.png
563.4 KB
Determine whether a string matches with a given pattern.
Given a string and a pattern, determine whether a string matches with a given pattern. The solution should not use any regex.
#Source_code
#Data_structure
#84
Given a string and a pattern, determine whether a string matches with a given pattern. The solution should not use any regex.
#Source_code
#Data_structure
#84
Java
code.png
#Data_structure
#Output
#84
Example inputs for a given Data Structure:
Input:
string: codesleepcode
pattern: XYX
Output:
X: code
Y: sleep
Input:
string: codecodecode
pattern: XXX
Output:
X: code
#Output
#84
Example inputs for a given Data Structure:
Input:
string: codesleepcode
pattern: XYX
Output:
X: code
Y: sleep
Input:
string: codecodecode
pattern: XXX
Output:
X: code
DiffOddEven.png
759.6 KB
Java Program to calculate the Difference between the Sum of the Odd Level and the Even Level Nodes of a Binary Tree
#Source_code
#85
#Source_code
#85
Media is too big
VIEW IN TELEGRAM
For those of you who are facing midterm exams, project deadlines or just dealing with time management😅.
#meme
#meme
Java Program to add two matrices
We can add two matrices in java using binary + operator. A matrix is also known as array of arrays. We can add, subtract and multiply matrices
#Source_code
#90
We can add two matrices in java using binary + operator. A matrix is also known as array of arrays. We can add, subtract and multiply matrices
#Source_code
#90