uz
Feedback

Firibgarlarga uchmang! Telemetrio bunday kanallarni topadi va belgilaydi 👉 Belgini ko‘rmoqchi bo‘lsangiz, obuna bo‘ling

IBM | TATA STEEL | AMAZON OA CODING SOLUTIONS

IBM | TATA STEEL | AMAZON OA CODING SOLUTIONS

Kanalga Telegram’da o‘tish

We provide help for all Exam... Anyone can contact me @AK_Coder for Exam clearance and interviews Trusted ✅

Ko'proq ko'rsatish
2 100
Obunachilar
Ma'lumot yo'q24 soatlar
-87 kun
-2130 kun
Postlar arxiv
This is the best group
31 Mar 2022, 01:36

I'll tell to my friends
31 Mar 2022, 01:36

Thank you sir
31 Mar 2022, 01:36

Thanku
31 Mar 2022, 01:36

❤️👍🥳🥳🤩🤩
31 Mar 2022, 01:36

And tqs to team 🎉
31 Mar 2022, 01:36

Thanku broo...
31 Mar 2022, 01:36

Thank so much bro
31 Mar 2022, 01:36

Thanks bro 💥
31 Mar 2022, 01:36

🚨TCS PRA ITIS MARCH 30th FAILED CANDIDATES Can book your slot now.. Who want to clear ping me @ThorH5
30 Mar 2022, 22:21

import java.util.*; public class Solution{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int n=sc.nextInt(); FruitStore[] model=new FruitStore[n]; for(int i=0;i<n;i++) { model[i]=new FruitStore(sc.nextInt(), sc.nextLine()+sc.nextLine(), sc.nextLine(), sc.nextInt()); } int arg= sc.nextInt(); if(getFruitByItemNo(model,arg)==null) System.out.println("No fruits found"); else System.out.println(getFruitByItemNo(model,arg)); if(getFruitOfMaxPrice(model)==null) System.out.println("No fruits found"); else { System.out.println(getFruitOfMaxPrice(model)); } } //1st public static FruitStore getFruitByItemNo(FruitStore[] arr, int itemNo){ FruitStore res=null; for(FruitStore f:arr) { if(f.getItemNo()==itemNo) res=f; } return res; }//end 1st //2nd public static FruitStore getFruitOfMaxPrice(FruitStore[] arr){ FruitStore[] res=Arrays.asList(arr).stream().sorted((s1,s2)->{ return s2.getPrice()-s1.getPrice(); }).toArray(size-> new FruitStore[size]); if(res.length==0) return null; return res[0]; }//end 2nd }//end solution class class FruitStore{ private int itemNo; private String name; private String color; private int price; public FruitStore() { } public FruitStore(int itemNo, String name, String color, int price) { super(); this.itemNo = itemNo; this.name = name; this.color = color; this.price = price; } public int getItemNo() { return itemNo; } public void setItemNo(int itemNo) { this.itemNo = itemNo; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getColor() { return color; } public void setColor(String color) { this.color = color; } public int getPrice() { return price; } public void setPrice(int price) { this.price = price; } public String toString() { return itemNo + "\n" + name + "\n" + color + "\n" + price ; } } ✅FruitStore code Java Python Telegram: @tcs_pra_ira_help
24 Mar 2022, 01:00

photo content
+1
24 Mar 2022, 00:26

Python & unix done
24 Mar 2022, 00:26

photo content
+6
23 Mar 2022, 04:54

photo content
+9
23 Mar 2022, 04:54

photo content
+9
23 Mar 2022, 04:54

Thanks cleared
23 Mar 2022, 04:53

Cleared tqqs
23 Mar 2022, 04:53

I will surely recommend u to others
23 Mar 2022, 04:53

U r man of ur words
23 Mar 2022, 04:53