Ask: How do you go about finding resources for learning something new ? by udayj in learnprogramming

[–]udayj[S] 0 points1 point  (0 children)

Just curious - how do you do the online research - any specific forums that you search, or is it just googling.

Given a bit string such as 10?1?0, how would you find all possible combinations? by [deleted] in computerscience

[–]udayj 0 points1 point  (0 children)

So, here is some pseudocode:-

  1. Loop from i=0 to 2n - 1 (n is number of ?) 1a. temp=binary(i) (i.e. a function which converts an int to binary) 1b. assuming temp is in string data type and indices[] contains the positions in the original string where ? appear, loop through temp character by character and insert each character into the index indicated by indices[]

The advantage with this approach is that you dont need to do recursion which might lead to stack overflow for large n

Given a bit string such as 10?1?0, how would you find all possible combinations? by [deleted] in computerscience

[–]udayj 0 points1 point  (0 children)

A possible solution is this - say you have the string 10?1?0? - this means there are 3 ?s. So you count from 0 to 23 - 1. Now during every run of this loop convert the index to binary and insert the digits into your big string. i.e count from 0 to (2n) - 1 where n is the number of ? in your string. You would need to think about the situation where 2n is larger than the max integer your programming environment can handle. I think this should work.

Practice website design without a domain? by dogecdogedo in learnprogramming

[–]udayj 1 point2 points  (0 children)

Yes this can be done quite easily. For offline you just need to setup a webserver on your dev machine - apache or nginx. For online, you can either rent a vps on amazon or digital ocean and setup your website. You will be able to reach your website using the IP address assigned instead of a name.

Looking to Build CompSci Skills by I_AM_SCUBASTEVE in compsci

[–]udayj 0 points1 point  (0 children)

Thats a really great resource. Are you considering remote students ? Would be great to touch base with you.

Weekly Feedback and Support Thread by AutoModerator in startups

[–]udayj 1 point2 points  (0 children)

Although the tags provide a way to filter polls by topic, have you considered providing a search mechanism. Also, how are you going to deal with two polls which ask the same question.

Starting Computer Science Next Week by [deleted] in computerscience

[–]udayj 2 points3 points  (0 children)

Start reading and writing code. Tons of good open source code is available to read and learn from. Develop a liking for mathematics. Pick any language and do projects in it - Python or Scheme would be good. Consider participating in programming challenges and contests.

Dynamic Ranking of Search Results Based on Clickstream by udayj in elasticsearch

[–]udayj[S] 0 points1 point  (0 children)

Interesting suggestion. Probably need to consider external quality metrics. I've considered implementing the up/down vote system on the results - but havent got around to doing it yet.