Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

C Algorithm Practice

This repository contains solutions to algorithmic problems implemented in C.

These problems focus on:

  • Scheduling algorithms
  • String manipulation
  • Efficient time complexity approaches

Problem 1: Minimum Meeting Rooms

Description

Given a list of meetings with start and end times, determine the minimum number of meeting rooms required such that no meetings overlap.

A meeting that ends at time t and another that starts at time t do not overlap.

Example

Input: [[1,4], [1,5], [5,6], [6,10], [7,9]]

Output: 2

Time Complexity

O(n log n)


Problem 2: Reverse Last Two Characters

Description

Given a string, generate a new string consisting of its last two characters reversed and separated by a space.

Example

Input: "bat"
Output: "t a"


Author

Bello Umar
Computer Science Graduate | Web Developer | AI Enthusiast

About

C programming algorithm solutions including scheduling and string manipulation problems.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages