Coding | EXAMS | IBM ACCENTURE | VIRTUSA | IBM | AMAZON | TCS | EPAM | WILEY EDGE | TECH MAHINDRA | JPMORGAN | HCL | WIPRO
3.37K subscribers
1.13K photos
3 videos
17 files
373 links
Main channel https://t.me/Coding_000
Contact Admin 👉 @ILOVEU_143 for booking your exam slots
Web- https://coding000.github.io/Projects/
💯% clearance in any placement exams
OffCampus -https://t.me/Offcampus_000
Discussion- https://t.me/exams_discussion
Download Telegram
Those who needs help to clear

👉Accenture on 28 Oct
👉Capgemini on 29 Oct
👉 Deloitte Exam 29 Oct
👉Cognizant CSD on 30 Oct

Book Your SLOTS.

Hurry Up.


100% Clearance Guarantee.

Contact
@ILOVEU_143
👍2
Those who needs help to clear

👉Accenture on 28 Oct
👉Capgemini on 29 Oct
👉 Deloitte Exam 29 Oct
👉Cognizant CSD on 30 Oct

Book Your SLOTS.

Hurry Up.


100% Clearance Guarantee.

Contact
@ILOVEU_143
👍1
HI GUYS


DELOITTE EXAM SLOTS ARE AVAILABLE

9Am
2pm
5pm
8pm
Book Your SLOTS.

Hurry Up.


100% Clearance Guarantee.

Contact
@ILOVEU_143
👍4
Contact @ILOVEU_143 for oct30th COGNIZANT CSD slot

Note it's paid

Proofs👇👇

https://t.me/Coding_000/5572

https://t.me/Coding_000/5570

https://t.me/Coding_000/5569

100% clearance guarantee 🔥🔥
Share my channel with your friends and college groups🥳

Trust us Expect us ❤️
👍1🥰1
def assess_progress(N, data):
    for week in range(N):
        week_data = data[week]
        if week == 0:
            print("Healthy" if week_data[-1] <= week_data[0] else "Unhealthy")
        else:
            previous_week_data = data[week - 1]
            if week_data[0] <= previous_week_data[-1]:
                print("Healthy")
            else:
                print("Unhealthy")

N = int(input())
data = []
for _ in range(N):
    week_count = input().strip()
    data.append([int(digit) for digit in week_count])


assess_progress(N, data)

Share @coding_000
👍1
Contact @ILOVEU_143 for oct30th COGNIZANT CSD slot 30 OCT AND 6TH NOV 😊

Note it's paid

Proofs👇👇

https://t.me/Coding_000/5572

https://t.me/Coding_000/5570

https://t.me/Coding_000/5569

100% clearance guarantee 🔥🔥
Share my channel with your friends and college groups🥳

Trust us Expect us ❤️
👍1
Share our channel screenshot in large groups

For coding answers 🏃🏃🏃🏃
👍2
import java.util.*;
import java.util.stream.Collectors;

public class AnalyticsSystem {
    private final AnalyticsStore analyticsStore;
    private final int K;
    private Queue<ActionEnum> actionsQueue;
    private Map<ActionEnum, Integer> actionCount;

    public AnalyticsSystem(AnalyticsStore analyticsStore, int K) {
        this.analyticsStore = analyticsStore;
        this.K = K;
        this.actionsQueue = new LinkedList<>();
        this.actionCount = new HashMap<>();
    }

    public void registerAction(ActionEnum action) {
        actionsQueue.add(action);
        actionCount.put(action, actionCount.getOrDefault(action, 0) + 1);

        if (actionsQueue.size() == K) {
            analyticsStore.storeActions(new LinkedList<>(actionsQueue));
            actionsQueue.clear();
        }
    }

    public int getNumberOfActionsRegisteredButNotSentToAnalyticsStore() {
        return actionsQueue.size();
    }

    public int getTotalNumberOfLoggedActions() {
        return actionCount.values().stream().mapToInt(Integer::intValue).sum();
    }

    public List<ActionEnum> getMostFrequentlyUsedActions() {
        List<ActionEnum> mostFrequentActions = actionCount.entrySet().stream()
                .sorted(Map.Entry.comparingByKey(Comparator.comparing(Enum::name)))
                .sorted(Map.Entry.<ActionEnum, Integer>comparingByValue().reversed())
                .map(Map.Entry::getKey)
                .collect(Collectors.toList());

        return mostFrequentActions;
    }
}
👍1🔥1