Count Occurrences of a Character (Case-insensitive)
Asked at Discord · Coding Questions · Difficulty: Easy · Last asked Jul 15, 2026
Implement `number_of_character(string, char)` to count how many times character `char` appears in `string`, **case-insensitively**.
Loading the problem…
More Discord interview questions
- Implement a Leader-Follower Distributed System with Membership, Failover Detection, and Leader Election (Practical pair-programming)
- Design a Chat Server
- Build a Discord-like TCP Chat Server with Slash Commands, Rooms, Reconnection, and Persistence
- Python Data Structure Design for Game Metadata and Related Discord Servers
- Chat Server
- SQL Windowed Aggregation: Past 7/14/30 Days per Day and Country