Search:

Type: Posts; User: Zeus_

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Hey! I've too started solving Project Euler...

    Hey! I've too started solving Project Euler problems very recently and I'm regularly committing to my GitHub repository for Competitive Programming with my solutions. Project Euler is fine with...
  2. Replies
    6
    Views
    169

    Firstly, the program is wrong because size is an...

    Firstly, the program is wrong because size is an uninitialised non-const variable from which you are trying to create an array of characters. Neither does the programmer nor the computer know what...
  3. Are you trolling around or are you just that...

    Are you trolling around or are you just that stupid? You have C::B on either full screen or you've disabled all the different Tabs. Enable them and you can see the options/buttons again. You could...
  4. Thanks! I've didn't know std::gcd() and...

    Thanks! I've didn't know std::gcd() and std::lcm() were added in C++17. I'll use them from now on. Although, even when I compiled using -std=c++1z, I get the error of gcd not being declared in the...
  5. This is a Project Euler problem that I too solved...

    This is a Project Euler problem that I too solved a few days back.
    Here's my solution: Competetive-Programming-Q-A/#5 Smallest Multiple.cpp at master * ZeusNoTZues/Competetive-Programming-Q-A *...
  6. What you need to do is read the instruction...

    What you need to do is read the instruction manual for C::B to get it to run your program. To attach code on this site you need to use [] (with CODE in b/w the brackets) at the beginning of your code...
  7. Replies
    1
    Views
    406

    YouTube tutorials do not cover enough information...

    YouTube tutorials do not cover enough information but it'll be good enough to get you started. Buying a book would only help if you have the time to sit through and read carefully, implement simple...
  8. Thread: Kalah game !

    by Zeus_
    Replies
    1
    Views
    126

    Good question. Unfortunately, this forum is not...

    Good question. Unfortunately, this forum is not for solving questions unless you've attempted to solve it yourself and show us code.
  9. Replies
    3
    Views
    197

    It's a very good read. Thanks for linking it here.

    It's a very good read. Thanks for linking it here.
  10. You might wanna look at a few resources to learn...

    You might wanna look at a few resources to learn more about warnings.

    Here are a few good ones:
    Why Bother with Compiler Warnings? - Cprogramming.com
    0.11 — Configuring your compiler: Warning...
  11. Replies
    62
    Views
    2,092

    Oh yes, my bad. Sorry about that. I subtracted 84...

    Oh yes, my bad. Sorry about that. I subtracted 84 instead of 86 which led me to think that the equation was wrong. Well done :)
  12. Replies
    62
    Views
    2,092

    That would work only for a specific test case,...

    That would work only for a specific test case, not all possible cases. If this formula was meant for the original test sample, your equation is wrong. Test it out yourself :)

    What was the sample...
  13. Replies
    62
    Views
    2,092

    Yep, I linked the book from the Amazon website in...

    Yep, I linked the book from the Amazon website in my post which says the latest delivery is by Tuesday but I didn't order it from Amazon lol :) Found another website that was delivering within 24...
  14. Replies
    62
    Views
    2,092

    Cool, thanks, just placed the order. Will arrive...

    Cool, thanks, just placed the order. Will arrive by tomorrow.
  15. Thread: C++ Challenge

    by Zeus_
    Replies
    4
    Views
    345

    I know that Floyd's algorithm is an O(N) solution...

    I know that Floyd's algorithm is an O(N) solution to finding a loop in a linked list. You might wanna read about it on Wiki or something. I learnt a version of it recently while solving an ICPC...
  16. Replies
    62
    Views
    2,092

    @Hodor, I'll be ordering the book you mentioned...

    @Hodor, I'll be ordering the book you mentioned above in post #39. Is it this Buy Godel, Escher, Bach: An Eternal Golden Braid Book Online at Low Prices in India | Godel, Escher, Bach: An Eternal...
  17. Replies
    40
    Views
    1,482

    Wow, just wow.... how many years have you been...

    Wow, just wow.... how many years have you been programming in C++? That's an insane amount of new knowledge that I came across when reading the last few posts on this thread.
  18. Replies
    62
    Views
    2,092

    Thanks for the reference! I'll look it up at the...

    Thanks for the reference! I'll look it up at the school library tomorrow (I doubt that I will find it). Yes, I'm interested in algos and math (math is my favourite subject i.e. people who have no...
  19. Replies
    62
    Views
    2,092

    It takes about 3 seconds on my laptop. Nah, it...

    It takes about 3 seconds on my laptop.
    Nah, it doesn't work on all kinds of inputs.

    CodeWars - Sample Problems
    HP CodeWars 2020
  20. Replies
    62
    Views
    2,092

    I think the Python solution was from one of the...

    I think the Python solution was from one of the student teams that submitted the solution. Yes, it doesn't work as you mention. I tried doing different things too, and matched with my brute force...
  21. Replies
    62
    Views
    2,092

    I found a solution to the problem in Python,...

    I found a solution to the problem in Python, although I don't understand the language much and find it weird. I feel that my choice of C/C++ at school was a good decision.
    This works, but I don't...
  22. Replies
    1
    Views
    213

    User-defined types to built in types

    Hey!

    Is it possible to have an user-defined type behave exactly like another type, the other type being a built-in type? Every reference to the user-defined type in code is to be treated as a...
  23. Replies
    3
    Views
    234

    Where's your attempt at converting this C++ code...

    Where's your attempt at converting this C++ code to C? That code is almost C...

    A vector is like an array. Make an array of size 62 and convert push_back accordingly
    cout to printf
    etc...
  24. Replies
    21
    Views
    1,103

    Hey, found some time and implemented a few more...

    Hey, found some time and implemented a few more things today. Okay, so I know that @laserlight mentioned that my code will have undefined behaviour i.e. behaviour that's not been accounted by the...
  25. Replies
    3
    Views
    233

    Your code tries to create an array of your...

    Your code tries to create an array of your structure where each structure object holds an an array. What you're intending to do is creating one structure object and accessing its elements (in this...
Results 1 to 25 of 242
Page 1 of 10 1 2 3 4