Skip to content

Instantly share code, notes, and snippets.

View ashu-22's full-sized avatar
🎯
Focusing

Ashish ashu-22

🎯
Focusing
  • UST Global
  • Asia
View GitHub Profile
@ashu-22
ashu-22 / UserName.java
Created January 30, 2020 08:58
SearchUserName
import java.util.String;
import java.util.Scanner;
import java.util.UserName;
imort java.util.Search;
//write your main class from here//
public class Solution
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
public class Solution
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int input = new input();
int output = new output();
if(input == output)
{
return "true";
@ashu-22
ashu-22 / .Problem
Created December 28, 2017 14:26
Sum Problem
public class Solution
{
public static void main(String[] args)
{
int x = {n1,n2,n3,..n(s)};
Scanner sc = new Scanner(System.in);
i1 = n1;
i2 = n2;
i3 = n3;
for(int i = 0; i < n1.length; n1++)
@ashu-22
ashu-22 / .Management
Created December 28, 2017 14:20
Infra Asset Management
public class Solution
{
public static void main(String[] args)
{
EmployeeAssetRequest ear = new EmployeeAssetRequest();
AssetInventory inventory = new AssetInventory();
OrderTracking tracking = tracking;
Execution e = new Execution();
Employee e = new Employee();
Employee count = new Employee();
@ashu-22
ashu-22 / .secured
Created December 28, 2017 13:42
Folder Health Monitor
public class Solution
{
public static void main(String[] args)
{
Scanner temp = new Scanner(temp);
Scanner secured = new Scanner(secured);
int temp = new temp();
int sec = new sec();
for(int i = 0; i < temp.length; i++)
for(int j = 0; j < sec.length; j++)
@ashu-22
ashu-22 / .Java
Created September 26, 2017 06:20
FlattenArray
public class Solution
{
public static void main(String[] args) throws IOException
{
int a;
int b;
int c;
int d;
int e;
int a = 1;
@ashu-22
ashu-22 / Big O Drills
Last active August 5, 2017 02:53 — forked from aliciacasiano/Big O Drills
Big O Drills
Even or Odd: O(1)
Are You Here?: O(n^2)
Doubler: O(n)
Naive Search: O(n)
Creating Pairs: O(n^2)
Computing Fibonaccis: O(n)
An Efficient Search: O(log n)
Random Element: O(1)
Is it Prime?: O(n)
Time Complexity? : O(1),O(n),O(logn)
@ashu-22
ashu-22 / int
Created August 5, 2017 01:28
int in java
int i;
int j;
int k;
i = 10;
j = 20;
k = 30;
if(i == 10)
{
System.out.print("10");
}
@ashu-22
ashu-22 / Git Error
Created July 22, 2017 15:08
Git Error
fatal: destination path 'rundfunk-mitbestimmen' already exists and is not an empty directory.
import java.io*;
import java.util.Scanner*;
import java.text*;
import java.String*;
public class Solution
{
public static void main(String[] args)
{
int i;
int j;