Code Monkey home page Code Monkey logo

30-seconds-of-cpp's Introduction

wassup nerds ๐Ÿ––

Software Craftsman and Tech Writer living in New Delhi, India. I like to build stuff using Go, Python & Bash.

  • I am a Community Lead at r/developersIndia (Home for more than 400K techies. ๐Ÿš€)
  • In my free time, I am probably sleeping or reading something online.
  • I write sometimes, you can read some of my work below ๐Ÿ‘‡

Recent Writeups

BlogsTIL Newsletter

Getting bored? have a meme

iMABeginnerLearningUnityAndMyBloodStartsToBoilWheneverATutorialDoesThisIKnowThereSNothingWrongHereItJustRubsMyBrainTheWrongWay
iMABeginnerLearningUnityAndMyBloodStartsToBoilWheneverATutorialDoesThisIKnowThereSNothingWrongHereItJustRubsMyBrainTheWrongWay

โ„น๏ธ Source [ Powered By ๐Ÿ”ฅ Memer Action ]

Hire Me

30-seconds-of-cpp's People

Contributors

akash-arelli avatar ariella879 avatar bhupesh-v avatar bigb00st avatar cc618 avatar delta456 avatar harshraj22 avatar ianfpferreira avatar italovinicius18 avatar itodotimothy6 avatar kabindrashrsth avatar kambojankush avatar kbodurri avatar khagapati-bagh avatar kydojo avatar mingusj avatar nerouse avatar nishanthsanjeev avatar pranav-khurana avatar prathameshgawas avatar rafaelsilvabr avatar ranner198 avatar ravineel avatar rickey90 avatar sakshisharma028 avatar sdmg15 avatar shivasinghal2000 avatar soumyalahiri avatar thamara avatar yersiniap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

30-seconds-of-cpp's Issues

set::emplace( )

I added and tested this function on ideone. admin please review it.

For loop efficiency

Hello,
We should prefer pre-incrementation (++i, --i ) over post-incrementation ( i++, i-- ) in traditional for loop, until they will make a difference in the result. Pre-incrementation is actually more efficient than post-incrementation as in the post incrementation will need addition copy of the data.

Bug for_each_n incorrect comment

Describe the bug
In algorithm/for_each_n.md, there is a comment // Will output, 3 2 3 9 which is incorrect. This program will print out "3 2 ".

To Reproduce
Steps to reproduce the behavior:

  1. Go to algorithm/for_each_n.md
  2. See error

Expected behavior
Comment should read: // Will output, "3 2 "

Compiler (please complete the following information):

  • OS: MacOS
  • Compiler Version [e.g. gcc 8.2]: Apple LLVM version 10.0.0 (clang-1000.11.45.5)

Additional context
Maybe the example could be changed to something like the one used at cppreference.

Include other concepts of c++

The repo serves a fantastic guide to introduce new comers with the standard library of c++. It would be even great if we could add other lesser known( or used ) features of c++ here.

  • Suggestions:
    • Object Oriented Programming (not only inheritance, but also interesting topics like method chaining and this pointer)
    • Templates and variadic templates ( quite interesting ) and discussion about issues ( dos and donts ) with using templates with Classes
    • Lambda functions

And more such interesting and rarely features of c++

Weekly Digest (2 February, 2020 - 9 February, 2020)

Here's the Weekly Digest for Bhupesh-V/30-seconds-of-cpp:


ISSUES

Last week 1 issue was created.
It is still open.

OPEN ISSUES

๐Ÿ’š #474 contains.md, by EmmaINSA

NOISY ISSUE

๐Ÿ”ˆ #474 contains.md, by EmmaINSA
It received 1 comments.


PULL REQUESTS

Last week, 1 pull request was created, updated or merged.

UPDATED PULL REQUEST

Last week, 1 pull request was updated.
๐Ÿ’› #474 contains.md, by EmmaINSA


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were 3 stagazers.
โญ vinciuna
โญ carlin314
โญ EmmaINSA
You all are the stars! ๐ŸŒŸ


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository Bhupesh-V/30-seconds-of-cpp to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

Weekly Digest (5 January, 2020 - 12 January, 2020)

Here's the Weekly Digest for Bhupesh-V/30-seconds-of-cpp:


ISSUES

Last week 4 issues were created.
Of these, 0 issues have been closed and 4 issues are still open.

OPEN ISSUES

๐Ÿ’š #467 Explaining the fill_n function, by kbodurri
๐Ÿ’š #466 Algorithms: greatest common divisor, by amroakmal
๐Ÿ’š #465 Created clear.md for unordered_map, by amroakmal
๐Ÿ’š #464 Showing the usage of inner_product(), by kbodurri

NOISY ISSUE

๐Ÿ”ˆ #464 Showing the usage of inner_product(), by kbodurri
It received 2 comments.


PULL REQUESTS

Last week, 10 pull requests were created, updated or merged.

OPEN PULL REQUEST

Last week, 2 pull requests were opened.
๐Ÿ’š #467 Explaining the fill_n function, by kbodurri
๐Ÿ’š #466 Algorithms: greatest common divisor, by amroakmal

UPDATED PULL REQUEST

Last week, 3 pull requests were updated.
๐Ÿ’› #465 Created clear.md for unordered_map, by amroakmal
๐Ÿ’› #464 Showing the usage of inner_product(), by kbodurri
๐Ÿ’› #447 add partial_sum algorithm, by tiziano-b

MERGED PULL REQUEST

Last week, 5 pull requests were merged.
๐Ÿ’œ #453 Added method count for unorderedmap, by ariella879
๐Ÿ’œ #450 created set/cend.md and map/rend.md and Fixed makefiles , by Nerouse
๐Ÿ’œ #368 Added Queue Constructor as well as updated todo and readme.md, by Ranner198
๐Ÿ’œ #353 new is_sorted_until added, by abhay313
๐Ÿ’œ #247 Add nth_element() in algorithm , by IanFPFerreira


COMMITS

Last week there were 9 commits.
๐Ÿ› ๏ธ publish new changes by Bhupesh-V
๐Ÿ› ๏ธ Merge pull request #453 from ariella879/mybranch Added method count for unorderedmap by Bhupesh-V
๐Ÿ› ๏ธ Update count.md by Bhupesh-V
๐Ÿ› ๏ธ Merge pull request #450 from Nerouse/master created set/cend.md and map/rend.md and Fixed makefiles by Bhupesh-V
๐Ÿ› ๏ธ Update cend.md by Bhupesh-V
๐Ÿ› ๏ธ Update rend.md by Bhupesh-V
๐Ÿ› ๏ธ Merge pull request #368 from Ranner198/queue Added Queue Constructor as well as updated todo and readme.md by Bhupesh-V
๐Ÿ› ๏ธ Merge pull request #353 from abhay313/patch-5 new is_sorted_until added by Bhupesh-V
๐Ÿ› ๏ธ Merge pull request #247 from IanFPFerreira/nth_element Add nth_element() in algorithm by Bhupesh-V


CONTRIBUTORS

Last week there was 1 contributor.
๐Ÿ‘ค Bhupesh-V


STARGAZERS

Last week there were 6 stagazers.
โญ JanSimek
โญ aryamanpuri
โญ kbodurri
โญ beltmankelo
โญ clbeggs
โญ JoonSoo-Park
You all are the stars! ๐ŸŒŸ


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository Bhupesh-V/30-seconds-of-cpp to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

Add Run Code Links in existing code snippets

Add Runnable links of the code below the example.
Use link name Run Code which links to a Online C++ complier conatining the example code.
Use Rextester as the Online C++ Compiler (If you have a better suggesstion please comment).

Follow below steps to generate the Run Code Link.

  1. Go to Rextester
  2. Copy or write the example code.
  3. Run the code (hit F8) , see if you face any problems
  4. Save the code with the followng title format
    <algo_name>_30-Seconds-of-C++
  5. A permanent link will be generated , copy that
  6. Submit a PR which contains the Run Code Link just below the example.

Comment any doubts, suggesstions.

Looking for Maintainer/Collaborator

I have been maintaining this project for a long time now and I think I am not able respond quickly to new PRs thus driving away future contributors.

If you have already contributed to 30 Seconds of C++ before feel free to comment below, if you are willing to be a potential maintainer and collaborator.

The goal of 30C++ is to make sure C++ is easier to learn by providing quick explanations of STL, while driving the beginner friendly OpenSource Contribution

Current build failing due to make file

Describe the bug
The current build for this repository is failing because of the command "-std=c++2a " found in the make files. I believe that this c++ version is not supported yet by Travis CI.

This is the makefile for set and the other makefiles yield a similar result

Screenshots
Screen Shot 2019-11-21 at 2 12 42 PM

Compiler (please complete the following information):

  • OS: Mac OS

set::contains( )

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Compiler (please complete the following information):

  • OS: [e.g. iOS]
  • Compiler Version [e.g. gcc 8.2]

Additional context
Add any other context about the problem here.

Suggestion

How about adding time complexity to the methods presented?

Add new methods in different header directories

This is for first-time-contributors :
Add functions which belong to a particular header file in its corresponding .md file inside the header folder.
For example
std::sort belongs to algorithm header file, so make a new file sort.md inside the algorithm directory while maintaining the CONTIBUTING guidelines and formats.

See todo.txt file in different header directory to see which of the methods have not been implemented yet.

Weekly Digest (23 February, 2020 - 1 March, 2020)

Here's the Weekly Digest for Bhupesh-V/30-seconds-of-cpp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were 7 stagazers.
โญ ivantux1
โญ kevin95269
โญ GrantorShadow
โญ maheshoz
โญ mfurkanuslu
โญ crazyguitar
โญ fxrcode
You all are the stars! ๐ŸŒŸ


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository Bhupesh-V/30-seconds-of-cpp to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

Weekly Digest (19 January, 2020 - 26 January, 2020)

Here's the Weekly Digest for Bhupesh-V/30-seconds-of-cpp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were 2 stagazers.
โญ Royzon
โญ elchangtw
You all are the stars! ๐ŸŒŸ


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository Bhupesh-V/30-seconds-of-cpp to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

count in unordered_map

Hello. I noticed that for unordered_map there is no method called "count." Could I work on and be assigned this issue? Thank you.

<random>

I would like to work with the random library.

Weekly Digest (26 January, 2020 - 2 February, 2020)

Here's the Weekly Digest for Bhupesh-V/30-seconds-of-cpp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were 5 stagazers.
โญ khaind
โญ Wendy-chang-115
โญ xygai
โญ mengguang
โญ MaggieHu77
You all are the stars! ๐ŸŒŸ


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository Bhupesh-V/30-seconds-of-cpp to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

New Additions - 30C++ 2.0

Soon we will be implementing/explaining new C++ features. Some of them are included below, you can comment out your suggestions or chat with us on our Discord Server for more info.

Priority queues is missing

We can implement max heap, min-heap. It is used whenever we wish efficiently find the minimum or maximum element.
Can I add this algo?

Weekly Digest (12 January, 2020 - 19 January, 2020)

Here's the Weekly Digest for Bhupesh-V/30-seconds-of-cpp:


ISSUES

Last week 2 issues were created.
Of these, 0 issues have been closed and 2 issues are still open.

OPEN ISSUES

๐Ÿ’š #470 max_size.cpp, by Cybertron-Avneesh
๐Ÿ’š #469 max_size.md, by Cybertron-Avneesh


PULL REQUESTS

Last week, 2 pull requests were created, updated or merged.

OPEN PULL REQUEST

Last week, 1 pull request was opened.
๐Ÿ’š #469 max_size.md, by Cybertron-Avneesh

UPDATED PULL REQUEST

Last week, 1 pull request was updated.
๐Ÿ’› #470 max_size.cpp, by Cybertron-Avneesh


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were 10 stagazers.
โญ TheRealMazur
โญ hardesh
โญ James-Silva
โญ afenotes
โญ alanwuha
โญ Cybertron-Avneesh
โญ JakeRoeleven
โญ qzyse2017
โญ Sanchitraina1999
โญ ngttai
You all are the stars! ๐ŸŒŸ


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository Bhupesh-V/30-seconds-of-cpp to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

Add std set

Set is one of the most commonly used container in CPP. I would like to add some of the functions of this container. @Bhupesh-V

Weekly Digest (16 February, 2020 - 23 February, 2020)

Here's the Weekly Digest for Bhupesh-V/30-seconds-of-cpp:


ISSUES

Last week 1 issue was created.
It is still open.

OPEN ISSUES

๐Ÿ’š #477 adding inner_product, by bunnysamurai


PULL REQUESTS

Last week, 7 pull requests were created, updated or merged.

OPEN PULL REQUEST

Last week, 1 pull request was opened.
๐Ÿ’š #477 adding inner_product, by bunnysamurai

UPDATED PULL REQUEST

Last week, 2 pull requests were updated.
๐Ÿ’› #465 Created clear.md for unordered_map, by amroakmal
๐Ÿ’› #462 added destroy.md, by AVC0706

MERGED PULL REQUEST

Last week, 4 pull requests were merged.
๐Ÿ’œ #474 contains.md, by EmmaINSA
๐Ÿ’œ #470 max_size.cpp, by Cybertron-Avneesh
๐Ÿ’œ #469 max_size.md, by Cybertron-Avneesh
๐Ÿ’œ #467 Explaining the fill_n function, by kbodurri


COMMITS

Last week there were 4 commits.
๐Ÿ› ๏ธ Merge pull request #474 from EmmaINSA/set-contains contains.md by Bhupesh-V
๐Ÿ› ๏ธ Merge pull request #470 from Cybertron-Avneesh/master max_size.cpp by Bhupesh-V
๐Ÿ› ๏ธ Merge pull request #469 from Cybertron-Avneesh/patch-1 max_size.md by Bhupesh-V
๐Ÿ› ๏ธ Merge pull request #467 from kbodurri/fill_n Explaining the fill_n function by Bhupesh-V


CONTRIBUTORS

Last week there was 1 contributor.
๐Ÿ‘ค Bhupesh-V


STARGAZERS

Last week there were 2 stagazers.
โญ bunnysamurai
โญ kannasoot
You all are the stars! ๐ŸŒŸ


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository Bhupesh-V/30-seconds-of-cpp to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

README has incorrect link name

On README, the link name for the equal_range.md is incorrect:

<li><a href="algorithm/equal_range.md"><code>lower_bound</code></a></li>
<li><a href="algorithm/lower_bound.md"><code>lower_bound</code></a></li>

make a GitHub Action

Currently I have to run update_readme.py for updating the contents of README after a PR is merged.
We need to automate running of this script.
2 solutions can be:

  • Using Webhooks
  • GitHub Actions

I think using actions would be a wise choice

Automate building of readme files

I am currently working on a python script which can help to build readme files automatically.
It can be applied as a git hook.
But it would be nice if we build a C++ code instead to build readme(s)

Bug: The links in the README.md pages for each header file folder don't work

Describe the bug
All of the links in the README files in each of the header file folders are broken.

To Reproduce
Steps to reproduce the behavior:

  1. Go to algorithm, list or any of the other header file folders.
  2. View contents and try to click on any link
  3. They don't do anything

Expected behavior
I expect them to take me to the correct Markdown file. I think your update_readme.py script should also update the READMEs in each of the subfolders.

Weekly Digest (9 February, 2020 - 16 February, 2020)

Here's the Weekly Digest for Bhupesh-V/30-seconds-of-cpp:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were no commits.


CONTRIBUTORS

Last week there were no contributors.


STARGAZERS

Last week there were 3 stagazers.
โญ cyb3rturtle
โญ krthkj
โญ luisalves05
You all are the stars! ๐ŸŒŸ


RELEASES

Last week there were no releases.


That's all for last week, please ๐Ÿ‘€ Watch and โญ Star the repository Bhupesh-V/30-seconds-of-cpp to receive next weekly updates. ๐Ÿ˜ƒ

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. ๐Ÿ“†

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.