Try to implement some algorithms in the book Introduction to Algorithms in C (and maybe C++).

CAlgoIntro

Try to implement some algorithms in the book Introduction to Algorithms in C (and maybe C++).

Note that not every algorithm & problem in that book will be implemented here, and not every problem here is from that book.

Now finished

  • Dynamic Programming
    • Longest Common Subsequence
  • Divide-and-Conquer
    • Median of Two Arrays

Code structure

For each problem there'll be an independent directory to hold it's code. For example, the directory longest_common_subsequence saves the code of the problem 'Longest Common Subsequence'.

Inside each directory there may be a folder named lib which stores some simple and stupid small C basic data structures libraries such as queue and stack.

My code style is more or less like K&R. However, sometimes I prefer thisExample to this_example.

IDE I'm using

I'm using CLion by JetBrains to write these code. It's a wonderful IDE.

License

MPL v2.0

Owner
Hans Wan
¯\_(ツ)_/¯
Hans Wan
Similar Resources

Student-run contest competition in collaboration with { The Algorithms } 🚀

Student-run contest competition in collaboration with { The Algorithms }  🚀

🐞 BUGTRONS DEBUG THE CODE TO RISE & SHINE ✨ 🤔 ABOUT The BUGTRONS is a student-run contest, organized with the collaboration of two tremendous tech-l

Jan 18, 2022

Series of C algorithms written (by myself) during the C programming course

C Algorithms (Work in Progress...) Basic function Bolletta Tabella caratteri di escape Selection (if) Broker Calcolatrice Verifica della validità di u

Mar 9, 2022

One-Stop Destination for codes of all Data Structures & Algorithms

CodingSimplified_GK This repository is aimed at creating a One stop Destination of codes of all Data structures and Algorithms along with basic explai

Sep 26, 2022

The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++

The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++

The C++ Core Guidelines are a collaborative effort led by Bjarne Stroustrup, much like the C++ language itself. They are the result of many person-years of discussion and design across a number of organizations. Their design encourages general applicability and broad adoption but they can be freely copied and modified to meet your organization's needs.

Sep 30, 2022

Welcome to my dungeon. Here, I keep all my configuration files in case I have a stroke and lose all my memory. You're very welcome to explore and use anything in this repository. Have fun!

Fr1nge's Dotfiles Welcome to my dungeon. Here, I keep all my configuration files in case I have a stroke an d lose all my memory. You're very welcome

Apr 16, 2022

This repository contains notes and starter code for Bit manipulation and mathematics session for DSA bootcamp organized by Codeflows.

Bitmanipulation_maths This repository contains notes and starter code for Bit manipulation and mathematics session for DSA bootcamp organized by Codef

Jun 15, 2022

cpp fundamentals and questions for beginners and intermediates

cpp fundamentals and questions for beginners and intermediates

DSA 60 days Hi people! So we have started grasping dsa concepts and solving problems from 12 July. And we shall continue till September 10 Starting fr

Sep 28, 2022

A demonstration of implementing, and using, a "type safe", extensible, and lazy iterator interface in pure C99.

c-iterators A demonstration of implementing, and using, a "type safe", extensible, and lazy iterator interface in pure C99. The iterable is generic on

Sep 22, 2022

About Write a program to create a circular doubly linked list and perform insertions and deletions of various cases

Write a program to create a circular doubly linked list and perform insertions and deletions of various cases Circular Doubly Linked List Circular Dou

Aug 28, 2021
Introduction to Computer Systems (II), Spring 2021.

Introduction to Computer Systems (II) Spring 2021, Fudan University.

Jun 15, 2022
I am planning to add a beginner friendly path for my Juniors to Learn DSA and I will try to provide solutions of every problem also. We can add codeChef Challenge solutions also

DSA-Path-And-Important-Questions I am planning to add a beginner friendly path for my Juniors to Learn DSA Are you a Newbie in programming and want to

Sep 7, 2022
This is the code repository for my book C++20 - Get the Details.
This is the code repository for my book C++20 - Get the Details.

Cpp20 This is the code repository for my book C++20 - Get the Details. It has more than 200 running examples. The names of the directories reflect the

Aug 1, 2022
My journey through learning C following the "The ANSI C programming language" book

The ANSI C programming language: Some of the exercises This is a repo containing my attempts at some of the exercices present in the "The ANSI C progr

Aug 12, 2022
A simple program to solve Math3 book problems.
A simple program to solve Math3 book problems.

MathMan Program This is a simple program to solve Math3 book problems. Explore the docs » View Demo · Report Bug · Request Feature Table of Contents A

Feb 28, 2022
This repo is just for fun while playing with some OOP constructions in C

c-oop This repo is just for fun while playing with some OOP constructions in C. As it is not intended to be of any OOP reference of implementation it

Jun 22, 2021
Some C code I wrote while learning the Lua C API

Lua-C-API A personal repo where I push things while I'm learning the Lua C API! Feel free to contribute :) Building If you want to build this, you'll

May 13, 2022
The Repository Contains all about Data Structure and Algorithms with Practice problems, series, and resources to follow!

?? The Complete DSA Preparation ?? This repository contains all the DSA (Data-Structures, Algorithms, 450 DSA by Love Babbar Bhaiya,STriver Series ,FA

Jan 8, 2022
A place where you can learn and practise various Problems and algorithms
A place where you can learn and practise various Problems and algorithms

Problem-Solving Problem solving is an art of solving some real time challenges. And this is a place to get started, you can find many problems to solv

Apr 22, 2022
This repo is all about different data structures and algorithms..
This repo is all about different data structures and algorithms..

Data Structure and Algorithm : Want to learn data strutrues and algorithms ??? Then Stop thinking more and start to learn today. This repo will help y

Jul 10, 2022