๐—–๐—ฆ ๐—”๐—น๐—ด๐—ผ ๐Ÿ’ป ๐ŸŒ ใ€Ž๐—–๐—ผ๐—บ๐—ฝ๐—ฒ๐˜๐—ถ๐˜๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐—บ๐—ถ๐—ป๐—ดใ€
9.63K subscribers
5.61K photos
3 videos
95 files
10.6K links
๐ŸšฉMain Group - @SuperExams
๐Ÿ“Job Updates - @FresherEarth

๐Ÿ”ฐAuthentic Coding Solutions(with Outputs)
โš ๏ธDaily Job Updates
โš ๏ธHackathon Updates & Solutions

Buy ads: https://telega.io/c/cs_algo
Download Telegram
๐Ÿ”” IBM Recruitment 2022 : Hiring Freshers as Associate Systems Engineer With 4.2 LPA

* Job Role : Associate Systems Engineer
* Qualification : B.E/B.Tech/M.E/M.Tech/MCA/M.Sc
* Batch : 2019/2020/2021/2022
* Salary : upto Rs 4.2 LPA

https://fresherearth.blogspot.com/2022/03/IBM-Recruitment-2022-Hiring-Freshers-as-Associate-Systems-Engineer-With-4.2-LPA.html

โœ… Share with your friends
๐Ÿ‘1
import java.util.HashMap;
import java.util.Map.Entry;
import java.util.Scanner;
import java.util.TreeMap;

public class SortBasedOnKey {

public static String Order(HashMap<Integer, String> map) {
TreeMap<Integer, String> m = new TreeMap<Integer, String>(map);
String ans = "";
for(Entry<Integer, String> str : m.entrySet()) {
ans+=str.getValue()+" ";
}
return ans.strip();
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
HashMap<Integer, String> map = new HashMap<Integer, String>();
int n = sc.nextInt();
sc.nextLine();
for(int i=0; i<n; i++) {
map.put(Integer.parseInt(sc.nextLine()),sc.nextLine());
}
System.out.println(Order(map));

}
๐Ÿ‘1
import java.util.ArrayList;
import java.util.Scanner;

public class NsmallestFactor {
public static int getSolution(int r, int b ) {
ArrayList<Integer> list = new ArrayList<Integer>();
for(int i=1; i<=r; i++) {
if(r%i==0) list.add(i);
}
return list.indexOf(b+1);
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int R = sc.nextInt();
int B = sc.nextInt();
System.out.println(getSolution(R,B));
}
}