Quiz : Twice counter

CK CK 3788 
Created at  
702 0 0

Given an array of 10 words. Some words are repeated twice, we need count such words.

Output:
Print the count of the words which are repeated twice in the string.

Constraints:
1<=no of words<=10^5
1<=length of each word<=10^5

Example Input 1)
hate love peace love peace hate love peace love peace

Example Input 2)
Tom Jerry Thomas Tom Jerry Courage Tom Courage Jane Tom

Tags INI File Open quiz Facebook X
Comments 0
Similar posts
  1. FNC(Photo/Video File Name Changer) v1.1 Release - Date Time Bug Fix & Retry Function Added
    709
  1. Exploring the Depths of Data Transfer: sendfile vs. kTLS
    1,328
  2. How Netflix Ensures Smooth Streaming with Open Connect CDN
    2,135
  3. Public DNS (Domain Name Service) based on IPv4, IPv6 widely used
    1,247
  4. All Engineering Software Development How can you prioritize software design trade-offs when developing a new product?
    1,346
  5. MR(Mixed Reality) Game Programming based on Unity 3D
    1,372
  6. Temporal Programming Model - Robust, Long-Running, Fault-Tolerant Applications as WorkFlows
    362
  7. Cadence Programming Model - A Distributed, Fault-Tolerant, Stateful Workflow Orchestration Framework
    301
  8. Multi-AZ Kafka Architecture
    157
  9. Large-Scale Concurrency Control: Solving the DB Bottleneck from a Flood of “Likes”
    276
  10. Hybrid Methods for Recommendation Service
    222
  11. Model-Based CF: Matrix Factorization for Recommendation Service
    186
  12. Memory-Based Collaborative Filtering for Recommendation Service
    202
  13. Content-Based Filtering for Recommendation Service (aka User-based Model)
    194
  14. Stateful Databases: A Deep Dive with Cassandra & TiDB
    198
  15. Why Kubernetes? Core Features and Microservice Orchestration Strategies
    578
  16. Kubernetes, aka K8s, is an open-source container orchestration platform
    542
  17. Architecting for Resilience: AWS High Availability Components Including API Gateway
    144
  18. Is AWS API Gateway Disaster-Proof? DR, Benefits, and Multi-AZ Architecture Explained
    146
  19. Smart TV Cycling Apps – TV for Fitness
    813
  20. The public could reduce server cost, and enhance performance for global service distribution
    10,744
  21. Cloud gaming coming to Samsung Smart TVs
    561
  22. Kids App – Kids Learn While Parents Control on Samsung Smart TV
    764
  23. Fitness Hub presents your personal trainer, Fitness VOD on Samsung Smart TV
    521
  24. Word counting source program based on MapReduce framework
    692
  25. The leaders who created Smart TV
    820
  26. FNC(Photo/Video File Name Changer) v1.02 release - The file created date time information is available for those cameras providing incorrect EXIF data
    978
  27. Samsung Apps hits 5 million Smart TV app downloads
    650
  28. Your Video – VoD content recommendation service on Samsung Smart TV
    562
  29. Amazon S3 File Explorer : You can use S3 like Windows File Explorer
    566
  30. FNC(Photo/Video File Name Changer) v1.01 release
    770
Recently updated
  1. Google OAuth Token Expiration: Causes and Solutions
    31
  2. Why 100% SEO Guarantees Better User Engagement and How to Achieve It in Your Service
    57
  3. Why SPF and DKIM Are Essential for Linux Email Servers?
    51
  4. How do I create animated background for Google Meet?
    23,255
  5. MaxMind GeoLite2 vs. DB-IP Lite vs. ip-api.com: Choosing the Right Free IP Geolocation Solution
    273
  6. Meet Valkey: Why Redis Changed Its License, Why Valkey is Better, and How to Use It as a Drop-in Replacement
    104
  7. How Rogue Web Scrapers Are Stealing My Content and Destroying My Server
    170
  8. Array of arguments passed to script in PHP
    99
  9. Invalid Auction Storms in Ad Tech
    108
  10. Building MRC-Compliant Instrumentation in Ad Tech: Implementation Steps and Key Challenges
    209
  11. The Two Clocks of Ad Server Architecture
    78
  12. Frequency Cap Architecture Overview
    527
  13. Collecting Proof-of-Play from 100,000 Screens
    153
  14. Vector Search in Relational Databases (RDBs): Trends & Usage Environments
    303
  15. What is RedisVL?
    117
  16. Designing a Skill Registry Architecture: Minimize Token Usage and Maximize AI Performance
    247
  17. TPU & GPU Cluster Management Tools
    258
  18. The Concept of Scaffolding in AI Agents
    245
  19. Beyond Static Pipelines: Architecting LLM Multi-Agent Systems for Autonomous Workflow Orchestration
    598
  20. AI-DLC vs. AI-SDLC: Model-Centric vs. System-Centric AI Development
    269
  21. Fine-Tuning Open-Weight LLMs: Training, Licensing, and Deploying Custom Models with Ollama
    355
  22. Inside the Next-Generation Streaming Architecture: Ultra-Low Latency, SGAI, and AI Codecs
    207
  23. Machine Learning: Training vs. Ranking
    230
  24. The Continuous Learning Machine: Designing a Loop That Actually Turns
    229
  25. The Next-Gen Low-Latency Standards: LL-HLS & MoQ
    204
  26. Designing a Data Curation System Around a Vector Database
    230
  27. Extracting Context from Live Video: The Architecture Got Simpler When We Stopped Building Features
    263
  28. The New Ad Stack Behind Live Sports Streaming: Inside SGAI, EABN, and the Standards Race to Fix Live Monetization
    674
  29. Designing MLOps Architectures to Handle Seasonal Data Drift in EV Fleet Models
    201
  30. From 15 to 40+ FPS: Accelerating PyTorch Object Detection on Automotive ECUs
    233