-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ambujraj/master
Merging
- Loading branch information
Showing
65 changed files
with
2,028 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.ArrayList; | ||
class A{ | ||
public static void main(String args[]) | ||
{ int[] arr={1,5,6,7,42,4,}; | ||
System.out.println(Arrays.toString(arr)); | ||
//Create Integer array bcz in List Integer works not int | ||
Integer[] i=new Integer[arr.length]; | ||
//Put arr element into Integer array | ||
for(int j=0;j<arr.length;j++) | ||
{ i[j]=Integer.valueOf(arr[j]); | ||
|
||
} | ||
//Convert List into arrayList | ||
ArrayList<Integer> ar=new ArrayList<>(Arrays.asList(i)); | ||
ar.add(54889); | ||
System.out.println(ar); | ||
|
||
|
||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package BigInteger_InJava; | ||
|
||
/* | ||
* In JAVA the maximum size of number is 64-bit (long), including 1 signed bit. | ||
* So JAVA provides BigInteger to do operations for larger values. | ||
* mod, add, div, sub, multiply and etc. for arithmetic operations | ||
`* | ||
* @uthor Jayesh Valbhani | ||
*/ | ||
|
||
import java.math.BigInteger; | ||
|
||
public class Demo { | ||
public static void main(String[] args) { | ||
|
||
BigInteger bigNum = new BigInteger("100000000000000000000000"); | ||
long temp = 1235678900; | ||
|
||
System.out.println("Added value : " + bigNum.add(BigInteger.valueOf(temp))); | ||
|
||
System.out.println("Multiplied value : " + bigNum.multiply(BigInteger.valueOf(temp))); | ||
|
||
System.out.println("Divided value : " + bigNum.divide(BigInteger.valueOf(temp))); | ||
|
||
System.out.println("Subtracted value : " + bigNum.subtract(BigInteger.valueOf(temp))); | ||
|
||
System.out.println("Mod value : " + bigNum.mod(BigInteger.valueOf(temp))); | ||
|
||
System.out.println("GCD value : " + bigNum.gcd(BigInteger.valueOf(temp))); | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
Name: [Waqar Ahmed](https://github.com/waahm7)<br/> | ||
Place: Pakistan<br/> | ||
About: Computer sceince sutdent, intrested in logical & mathematical concepts.<br/> | ||
Programming Language:C, C++, JAVA, Kotlin, Java<br/> | ||
Email: [email protected]<br/> | ||
|
||
Name: [pnjha](https://github.com/pnjha)<br/> | ||
Place: India<br/> | ||
About: Computer science student, excited about AI and ML<br/> | ||
Programming Language:C, C++, JAVA, R, Python, JS, HTML, CSS<br/> | ||
Email: [email protected]<br/> | ||
|
||
Name: [Bardr](https://github.com/Bardr)<br/> | ||
Place: Poland<br/> | ||
|
@@ -11,6 +22,12 @@ About: Computer Science Sophomore<br/> | |
Programming Language: Python, C/C++, Java<br/> | ||
Email: [email protected]<br/> | ||
|
||
Name: [Benchea Alexandru](https://github.com/Aquaryus01) | ||
Place: Romania | ||
About: Computer Science student | ||
Programming Language: Python, C++, Angular 6, Typescript, C, PHP | ||
Email: [email protected] | ||
|
||
Name: [jluo117](https://github.com/jluo117)<br/> | ||
Place: Bay Area<br/> | ||
About: Software engineer student!<br/> | ||
|
@@ -21,7 +38,13 @@ Name: [Santino](https://github.com/santinohu)<br/> | |
Place: Netherlands<br/> | ||
About: Software engineer student!<br/> | ||
Programming Language: Python, PHP, Java, PL/SQL<br/> | ||
Email: [email protected]<br/> | ||
Email: [email protected]<br | ||
|
||
Name: [Tharuja](https://github.com/Tharuja)<br/> | ||
Place: Sri lanka<br/> | ||
About: Software engineer student!<br/> | ||
Programming Language: Java ,React js,C<br/> | ||
Email: [email protected]<br/> | ||
|
||
Name: [Rocarft](https://github.com/rocarft)<br/> | ||
Place: Georgia<br/> | ||
|
@@ -66,6 +89,11 @@ About: I'm web developer which develop passive-income projects<br/> | |
Programming Language: Php,Javascript<br/> | ||
Email: [email protected]<br/> | ||
|
||
Name: [Arthur Vasconcellos](https://github.com/arthursvpb) | ||
Place: João Pessoa, Brasil | ||
About: Hey! I am a computer science student from Brazil. | ||
Programming Language: C, Python and JavaScript. | ||
Email: [email protected] | ||
|
||
Name: [Adit Mehta](https://github.com/aditmehta9)<br/> | ||
Place: Rajkot, Gujarat<br/> | ||
|
@@ -959,4 +987,95 @@ Name: [Leonardo Sena](https://github.com/leosena21)<br/> | |
Place: Salvador, Brazil<br/> | ||
About: Computer Engineer<br/> | ||
Programming Language: C#, Python<br/> | ||
Email: [email protected]<br/> | ||
Email: [email protected]<br/> | ||
|
||
|
||
Name: [Austin ZUniga](https://github.com/AustinZuniga) | ||
Place: Manila,Philippines | ||
About: Backend Developer | ||
Programming Language: Python, C, C++, php | ||
Email: [email protected] | ||
|
||
|
||
Name: [M4l2tIlV](https://github.com/M4l2tIlV)<br/> | ||
Place: Around the World<br/> | ||
About: Developer <br/> | ||
Programming Language: JAVA, PYTHON, JS, PHP<br/> | ||
|
||
|
||
Name: [LCaleb Conrad](https://github.com/ccconrad)<br/> | ||
Place: Ohio, United States. | ||
About: Programmer and avid drinker. | ||
Programming Language: C#, C++ | ||
|
||
|
||
Name:[Himanshu Thanna](https://github.com/himanshuthanna) | ||
Place:Delhi,India | ||
About:TCS Employee | ||
Programming language:Java,C | ||
|
||
|
||
|
||
Name: [sakshi pareek](https://github.com/sakshipareek)</br> | ||
Place: Rajasthan, India</br> | ||
About: student </br> | ||
Programming language: python,java</br> | ||
Email: [email protected]</br> | ||
|
||
Name: [Gargi](https://github.com/gsrajadh)<br/> | ||
Place: Atlanta, USA<br/> | ||
About: Software Developer<br/> | ||
Programming Language: Go, Python<br/> | ||
Email: [email protected]<br/> | ||
|
||
Name: [Rupna Maitra](https://github.com/zonex909)<br/> | ||
Place: Kolkata , West bengal , india<br/> | ||
About: Retired software developer<br/> | ||
Programming Language: C#, Python , ruby , lisp , cpp<br/> | ||
Email: [email protected]<br/> | ||
|
||
Name: [Rafael Julio](https://github.com/h4ndshake) | ||
Place: São Paulo, Brazil | ||
About: Computer Engineer | ||
Programming Language: C/C++, Arduino, Web, .NET 4.5, Java, others. | ||
Email: [email protected] | ||
|
||
Name: [Gahan](https://github.com/gahan-nirmauni)<br/> | ||
Place: India<br/> | ||
About: Computer Engineer<br/> | ||
Programming Language: C, Python<br/> | ||
Email: [email protected]<br/> | ||
|
||
Name: [MisterX22](https://github.com/MisterX22/)<br/> | ||
Place: Lannion, France<br/> | ||
About: Still looking what is behind the hill<br/> | ||
|
||
Name: [Hitanshu Sahu](https://github.com/Phantom-Cluster)<br/> | ||
Place: Kanpur, India<br/> | ||
About: Developer, Designer<br/> | ||
Programming Language: Python, JS<br/> | ||
Email: [email protected]<br/> | ||
|
||
Name: [Rosy Sanby](https://github.com/rosy-sanby)<br/> | ||
Place: Cape Town, South Africa<br/> | ||
About: Computer Engineer<br/> | ||
Programming Language: Javascript<br/> | ||
|
||
Name: [Paulo Bruny](https://github.com/pbruny)<br/> | ||
Place: Petrolina, Brazil<br/> | ||
About: Computer Engineering Student<br/> | ||
Programming Language: C, Javascript, Java<br/> | ||
Email: [email protected]<br/> | ||
|
||
|
||
Name: [Arvind Rachuri](https://github.com/arealdeadone)<br/> | ||
Place: Gwalior, India<br/> | ||
About: IT student at ABV - Indian Institute of Information Technology and Management, Gwalior<br/> | ||
Programming Languages: C++, C, JAVA, Ruby, Python, JavaScript, Golang<br/> | ||
Email: [email protected]<br/> | ||
|
||
Name: [Furkan Göksel](https://github.com/FireHunter27) | ||
Place: Ankara, Turkey | ||
About: Computer Engineering Student | ||
Programming Language: python, java, c, c++ | ||
Email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include <stdio.h> | ||
void capitalize(char *arr) { | ||
int i; | ||
for (i = 0; arr[i] != '\0'; i++) { | ||
if(arr[i]>='a' && arr[i]<='z') | ||
arr[i] -= 32; | ||
} | ||
} | ||
int main () { | ||
char arr[] = "winter is coming"; | ||
printf("%s\n",arr); | ||
capitalize(arr); | ||
printf("%s\n",arr); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import java.util.Scanner; | ||
|
||
class Factorial_finding | ||
{ | ||
public static void main(String args[]) | ||
{ | ||
int n, c, fact = 1; | ||
|
||
System.out.println("Enter an integer to calculate it's factorial"); | ||
Scanner in = new Scanner(System.in); | ||
|
||
n = in.nextInt(); | ||
|
||
if (n < 0) | ||
System.out.println("Number should be non-negative."); | ||
else | ||
{ | ||
for (c = 1; c <= n; c++) | ||
fact = fact*c; | ||
|
||
System.out.println("Factorial of "+n+" is = "+fact); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Palidrome{ | ||
public static boolean isPalindrome(int integer) { | ||
String intStr = String.valueOf(integer); | ||
return intStr.equals(new StringBuilder(intStr).reverse().toString()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
l=[1,2] | ||
import time | ||
n=int(input()) | ||
for i in range(3,n): | ||
if i%2==0: | ||
pass | ||
else: | ||
for j in range(3,i+1,2): | ||
if i%j==0 and j!=i: | ||
break | ||
elif j==i: | ||
l.append(j) | ||
#print(j,end=" ") | ||
else: | ||
pass | ||
l.sort(key=int) | ||
print(" ".join(map(str,l))) |
Oops, something went wrong.