2 849
مشترکین
-424 ساعت
-147 روز
-4630 روز
آرشیو پست ها
Sum of Cube code in java
Telegram👇👇👇
@codingsolution_group
@codingsolution_group
@codingsolution_group
Telegram👇👇👇
@codingsolution_group
@codingsolution_group
@codingsolution_group
Share Your Questions here👇👇
https://t.me/Exam_answer_group
https://t.me/Exam_answer_group
public class GFG {
static final int MAX = 1000;
// finds the smallest number in arr[]
// that is repeated k times
static int findDuplicate(int arr[], int n, int k)
{
// Since arr[] has numbers in range from
// 1 to MAX
int res = MAX + 1;
for (int i = 0; i < n; i++) {
if (arr[i] > 0) {
// set count to 1 as number is
// present once
int count = 1;
for (int j = i + 1; j < n; j++)
if (arr[i] == arr[j])
count += 1;
// If frequency of number is equal
// to 'k'
if (count == k)
res = Math.min(res, arr[i]);
}
}
return res;
}
// Driver code
public static void main(String[] args)
{
int arr[] = { 2, 2, 1, 3, 1 };
int k = 2;
int n = arr.length;
System.out.println(findDuplicate(arr, n, k));
}
}
awk 'BEGIN{FS=" ";IGNORECASE=1;s=0;c=0;}{
if ($3<25){
s = $3 + s
c += 1
}
}END{
if (c == 0) {
print "No record found."
}
else {
print "Total sum = "s;
}
}'
TCS IRA - Unix code
share this channel to your friends
Telegram👇👇👇
@codingsolution_group
@codingsolution_group
@codingsolution_group
Share Your Questions here👇👇
https://t.me/Exam_answer_group
https://t.me/Exam_answer_group
class Ticket:
def init(self, passenger_name, source, destination):
self.counter = 0
self.__passenger_name = passenger_name
self.__source = source
self.__destination = destination
self.Counter = self.counter
self.counter += 1
def validate_source_destination(self):
all_destinations = ["Pune", "Mumbai", "Chennai", "Kolkata"]
if self.source == "Delhi" and self.destination in all_destinations:
return True
else:
return False
def generate_ticket(self):
if self.validate_source_destination() == True:
self.ticket_id=self.source[0]+self.destination[0]+"0"+str(self.Counter)
print("Ticket id will be: " + self.ticket_id)
else:
return False
def get_ticket_id(self):
return self.ticket_id
def get_passenger_name(self):
return self.__passenger_name
def get_source(self):
if self.__source == "Delhi":
return self.__source
else:
print("You have written invalid soure option")
return None
def get_destination(self):
all_destinations = ["Pune", "Mumbai", "Chennai", "Kolkata"]
if self.__destination in all_destinations:
return self.__destination
else:
return None
TCS IRA - Ticket code in python✅✅
✅share this channel to your friends
Telegram👇👇👇
https://t.me/codingsolution_group
https://t.me/codingsolution_group
https://t.me/codingsolution_group
✅share this channel to your friends
Telegram- https://t.me/codingsolution_group
Telegram- https://t.me/codingsolution_group
Telegram- https://t.me/codingsolution_group
Cab rental code in py
Guys share our channel ❤️
https://t.me/codingsolution_group
https://t.me/codingsolution_group
https://t.me/codingsolution_group
Hey friends ❤️
Please promote and share our channel
👨💻👩💻Working on code
Share with your friend's Telegram group, whatapp group and College group✅✅✅
https://t.me/codingsolution_group
https://t.me/codingsolution_group
https://t.me/codingsolution_group
Guys share our channel ❤️.
https://t.me/codingsolution_group
https://t.me/codingsolution_group
https://t.me/codingsolution_group
TCS - Test of Knowledge ANSWER
1.double float
2.error
3. no output(c)
4. when break statement excutes
5. This is fun This is fun too
6, blocking statement
7, function cannot be reused
8, Tracking
9, postfix formA+(B*C)
10, 0.71
Today Tcs Answer Group - Telegram
https://t.me/codingsolution_group
https://t.me/codingsolution_group
https://t.me/codingsolution_group
Tcs ans Reasoning:
1,D
2.B
3.58
4, 8462, 2468,68...
5, JT
6, Karan
7, only 3 follows
8,3
9,453
10, candidate shoud score atleast 70%
11, A
12. 2
13. 484
14 only 1 is strong - B
15 D
16 R
17 42153
18,bhy
19, C
20 no conclusion fol...
21, 1
22,857:63
23,mayank would pass
24,b
25,b
26,only 1 and 2
27,4,2,3,1,5
28,cousin
29,Both the Bracketter letter curser are correct
30,cousin
@codingsolution_group
@codingsolution_group
@codingsolution_group
Today Tcs Answer Group - Telegram
https://t.me/codingsolution_group
https://t.me/codingsolution_group
https://t.me/codingsolution_group
Send Your Questions here👇👇 (discussion)
https://t.me/Exam_answer_group
https://t.me/Exam_answer_group
https://t.me/Exam_answer_group
Tcs answer group - Telegram
https://t.me/codingsolution_group
https://t.me/codingsolution_group
https://t.me/codingsolution_group
Send Your Questions here👇👇 (discussion)
https://t.me/Exam_answer_group
https://t.me/Exam_answer_group
https://t.me/Exam_answer_group
