Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
solving problems in C program
#1
Hi guys, It must be weird to see me post in this section of the forum but anyways, I have studied both c program and c++ in my second and third semester respectively. I'm having campus placements now and most of the companies need people with strong problem solving capability. So, I'm wondering if there is a website you personally have used for learning C for example: Find out whether the string having the following characters '[',']','{','}','(',')' is balanced or not {[]()} etc, etc. I am looking for a website that gives me problem statements and also the solution. I might google and get some but I'm hoping the lot of you have personally tried out some. So yeah I'm waiting for your reply!
a.k.a firzenx or X.
Deviantart| Arts |sprites|FaceBook
Reply
Thanks given by:
#2
I'm not a computer science student, but I've done lots of programming in my free time. Every problem is different, and the solutions can change from person to person (but rarely from language to language). The bracket balance problem I've encountered before and did it by having a
bracketNeutralizer
variable, for every type of bracket, which increments every time it reaches an opening bracket, and decrements when it reaches a closing bracket. When the neutralizer variable is 0, you know you're not inside any bracket pair. When it's n > 0, you know you're inside n nested bracketed expressions. n < 0 means there was n extra closing brackets, so you should probably throw an error.

Project Euler has very good programming puzzles.

Good luck!
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by: MnM
#3
Write a binary search function for integers.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by: MnM
#4
Discrete_and_Combinatorial_Mathematics_5th_ed_-_R._Grimaldi

or whatever edition. it talks about math,graphs,combinatorics,algorithms,programming etc. it is great for improving logic and solving skills.


I think another book "let us C" has also good problems.


http://web.programminghub.io/#/program/C/For%20Loop

http://www.techcrashcourse.com/2014/10/c...mples.html

are 2 websites with a lot of program examples too, that you might want to check.
Reply
Thanks given by: MnM
#5
Rosetta Code, Coderbyte, Project Euler, and CodeChef are few of what I know. These are sites full of programming tasks/challenges with varying difficulty.

There is also a huge list of similar websites gathered here: http://codecondo.com/coding-challenges/
Ultimately, my constant dissatisfaction with the way things are becomes the driving force behind everything I do.
[Image: sigline.png]
LF2 IDE - Advanced visual data changer featuring instant data loader
LF2 Sprite Sheet Generator - Template based sprite sheet generator based on Gad's method
[Image: sigline.png]
There is no perfect language, but C++ is the worst.
Reply
Thanks given by: MnM
#6
Might also want to shove your face into theoretical comp sci to get a small understanding of what can be done, should be done, must be done, or cannot be done.

Especially, if you're being asked if you can construct X and you already know that your solution will not be quicker than O(Y) and therefore won't actually be practicable anyways :p
Silverthorn
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » devArt
Reply
Thanks given by: MnM




Users browsing this thread: 1 Guest(s)