r/CS_Questions • • Mar 17 '22

Might be a stupid question but is Big O notation basically just how many loops/nested loops there are?

10 Upvotes

So like 0 loops = O(1), 1 loop = O(n), 2 = O(2n), or O(n2) if nested?

I tried googling to learn about Big O but the result was just reading an explanation and graph, being like "that makes sense," but having 0 actual grasp of how it works


r/CS_Questions • • Jul 24 '21

Free Training on Windows Server 2019 Administration (WS-011) - Will Cover Full Course

10 Upvotes

Hi everyone,

I'm currently delivering training on Microsoft's WS-011 (Windows Server 2019 Administration) course. I'm also going to be doing training on most of their other courses for those that's interested. The training should be enough to be able to write the exam associated with each course plus it will greatly benefit you in the workplace.

I truly hope this helps someone out there that needs the help. I remember what it feels like wanting to learn something like these courses and needing to write the exams but not being able to find any resources, at least not any free ones that is.

I intend on doing this completely at no charge to help those that's sitting in the same boat I used to be in.

Free Training on Microsoft WS-011 (Server 2019)!


r/CS_Questions • • Jun 01 '21

[Interview] Say you have a producer that sends you 100MB of data/second and you store it in some kinda database. How do you deal with this very rapidly growing database (Few TBs per day)?

10 Upvotes

Read traffic would be 100MB/second as well.

I asked if we can afford to delete the data after a duration. That was ok, so I recommended having the DBAs have a job or something to delete any rows older than 1 month, or if that isn't an option, then a cron job that does that for you. Or perhaps a scheduler in the application itself. What other alternatives are here?

I believe cassandra has an auto-deletion mechanism too.

Also, say you need to keep this data around for a year, do you then look into low-cost long-term storage such as S3 glacier? What other options are there?


r/CS_Questions • • May 05 '21

Presenting a project for an interview?

10 Upvotes

I have an interview for a new grad position this week where I have to present a feature or project that I have worked on in the past.

What should I expect? I plan to present a web page that I've worked on from a side project me and my friends have made. However, it's just a simple web page that grabs a bunch of mock data from a database and displays them as clickable cards. It has a search bar and pagination. My issue is that it might be too simple? I never presented a project for an interview before so I don't know what to expect and prepare for. Am I supposed to show like literal code? Is my project too simple? Any help would be appreciated. Thanks!


r/CS_Questions • • Feb 17 '19

Is it ok for interviewers for asking you stuff that you have done 8 years ago rather than your current work

10 Upvotes

This pisses me off big time. I had an interviewer who asked me about the minute details of a project that I did 8 years ago(not list in CV) and when I told them that I dont remember much about it, they said you should remember it. Bitch, I do not remember what I ate this morning.

Does stuff like that happen to anyone else?


r/CS_Questions • • Oct 11 '18

Correct way to prep for coding interviews

10 Upvotes

I recently had a job interview at a top 5 company. I made it to the final round and did not get the position. This was my first time applying and do not have a background as a "Software Developer."

I have 7 years of experience as an Embedded Firmware Engineer, so a lot of algorithms and data structures were new to me (I had never heard of a hash table, BSTs, or recursion until a few months ago). I am proud of how far I got and do not feel defeated at all.

The mistake I made was I tried to cram everything in quickly. Instead of studying for interviews I would like to learn everything the correct way. Is there a way to learn these topics without doing interview prep type problems. I was looking more so for projects. My current position does not allow me to apply the data structures and algorithms knowledge.

Is there a website or a course that helps you apply these topics and build things? I was hoping to apply Data Structures and Algorithms, Object Oriented Design, System Design, and eventually Threads and Locks knowledge.

My goal is to reapply in a year. So I am going to spend time learning things correctly.

Thank you for the help.


r/CS_Questions • • May 27 '18

Median of Two Sorted Arrays Interview Question and Explanation

Thumbnail fizzbuzzed.com
10 Upvotes

r/CS_Questions • • Feb 02 '18

My brother & I are building a CS interview prep app, what would be helpful?

10 Upvotes

Hey guys, my brother and I are building an app for people to learn CS and prep for interviews.

We have a first version out here: https://knd.codepressapp.com. On our roadmap we have a couple of things lined up, but wanted to check in with you guys to see what would be helpful!

Two things on are roadmap are more software engineering based questions (these are becoming a lot more prevalent in interviews), like "Build a url shortener", or "Build Facebook's News Feed". The other item is more in depth courses on data structures, algorithms, and interview techniques before questions.


r/CS_Questions • • Feb 02 '18

Why you fail your interview even as a great developer - article on Medium

Thumbnail
medium.com
10 Upvotes

r/CS_Questions • • Dec 31 '17

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses

Thumbnail
youtube.com
10 Upvotes

r/CS_Questions • • Dec 07 '17

How many ways can you climb a staircase with n steps taking either 1 or 2 steps at a time?

Thumbnail
youtube.com
10 Upvotes

r/CS_Questions • • Nov 11 '17

Find Array Sum Pairs - Programming Interview Question - YouTube

Thumbnail
youtube.com
10 Upvotes

r/CS_Questions • • Dec 24 '15

Describe an integer as sum of square numbers

10 Upvotes

Got asked this question by my Gainlo interviewer.

Every integer can be described as sum of square numbers, like 12=4+4+4. Write a function that returns the min # of square numbers needed.

e.g. f(12)=3, f(9)=1, f(3)=3


r/CS_Questions • • Nov 14 '11

Microsoft Interview Question: Count Sort

10 Upvotes

I have an O(n) sort called Count Sort. Essentially, if I have the following array:

 7 5 5 1 5 2 7

I tally the occurrences

1 : 1
2 : 1 
5 : 3
7 : 2

And use this information to generate the sorted version of the array.

So considering this is an O(n) sort, why don't people use it? Is it practical, and if so, when is it practical? Finally, code your own implementation of count sort (preferably in C or C++).


r/CS_Questions • • Nov 14 '11

Microsoft interview question: HTML Optimization

10 Upvotes

In a typical HTML document, there are some tags that will nest productively. For example, a table tag within a table tag will produce a nested table. Some tags however, will nest redundantly. A bold tag nested in a bold tag still produces the same output.

Given a set of tags that nest productively and redundantly and an HTML document, produce a minimal equivalent document where any redundant tags have been eliminated.


r/CS_Questions • • Feb 14 '24

grad CS EOY, alternative career question

9 Upvotes

I went this route as I'm in Bay Area and I was influenced by the opportunities / 1 think it's fascinating to a degree. I don't know if it's just the layoffs, desperation for interviews, etc but its really weighing down as I'll graduate end of year. I never had aspirations for FANG or anything of the sort. I am not a strong programmer but I prefer working with systems or data rather than interacting with people directly. I'm wondering what other career opportunities I could use the CS in? I was interested in database admin, data analytics. But I'm open to more OUTSIDE of PM, software dev, etc. I am open to moving as it might be a good idea to get out of the tech hub. Any thoughts?

1 CommentShare


r/CS_Questions • • May 31 '23

What should I choose to double major with CS if I want to start a business of my own?

9 Upvotes

I am a sophomore majoring in CS. I was planning to double major with Maths because I am really interested in maths (arguably more than CS) but I want to start a business of my own, something where I can use my CS degree and I think that math is not a practical choice for that. Something in business might be more practical. How is MIS and CS double major? I could really use some guidance on this


r/CS_Questions • • Nov 05 '22

Design question: If you ran an app playstore, how would you filter out an app in a certain country?

9 Upvotes

I was asked this question in an interview some while ago (I wrote this down on my notes sheet).

The context was how would I design a system that wouldn't list an app in another country?

I think mainly I would look for 1) what kind of high level breakdown can I talk about in an interview/would you expect?

2) How can I read more and learn about this?

I bombed it and failed.. obviously - felt really blind sided because I don't know a ton about "the internet" in general. The interviewer steered me towards TCP/IP as a conversation starter ("What happens when you type into an address bar?") but I feel like this is difficult to reason out if you don't really know much about it to start.


r/CS_Questions • • Mar 25 '22

Support Ukrainian Developers

9 Upvotes

Hey there! Im a developer from Ukraine, who have created a large community of developers from Ukraine who were effected by war. It's truly a large community, over 1200 people, but Im having a real struggle finding work for them, given limitations caused by war. Any suggestions of where I can help them find jobs, better projects from ground-up given their skillsets?

Direct message me for contact info


r/CS_Questions • • Jun 10 '21

HackerRank Coding Assessment

9 Upvotes

Hi! I'm very new to the CS space and have applied to many internships this past month, and I finally got an email back. I have to do HackerRank assessment coming up, but I don't really know what to expect. Does anyone know what a HackerRank assessment is like, and could share their experience? Is is similar to LeetCode? This is my first coding assessment, so I want to make sure I'm prepared. Any advice helps, thanks!


r/CS_Questions • • Jan 01 '21

Why would you use Cassandra over MySQL or another relational DB?

9 Upvotes

I've been theoretically thinking all along that its wide column benefits give it the advantage, but after some doing some reading I've come to realize that with the advent of the .cql schema structure, Cassandra is no longer a wide column datastore (I think?).

So it's only advantage seems to be its ring-based shardedness, i.e. vertical scalability.

However, this is now achievable for relational DBs a well (see Spanner by google), and you don't lose out RDBMS integrity and data consistency.

So what use case would I use cassandra for? I read that its used for storing Internet of Things data and user profile data, but don't understand what makes it suitable for these use cases?


r/CS_Questions • • May 11 '20

Square, Frontend Interview Question. System Design: Design A Hotel Reservation System

9 Upvotes

Background:

Hi,

I am frontend engineer (5 years experience) currently interviewing with a few companies. In preparation for a final round interview with Square, I recently spoke with one of their technical recruiters. In detailing how the final round would go, the recruiter told me that, for the system design interview, I would be told to design a hotel reservation/booking system.

(He told me that Square intentionally give candidates the interview question in advance so they can prepare for this round. This same question is apparently used frequently, as it mentioned multiple times on Glassdoor:

https://www.glassdoor.com/Interview/How-would-you-design-a-booking-system-for-a-hotel-chain-QTN_2614830.htm

https://www.glassdoor.com/Interview/Design-a-hotel-booking-application-QTN_2844132.htm)

Question:

Any tips on things to study (specifically for frontend/web dev) in preparation to handle this question? Any idea on what specific features they may want me to detail?

I was told to that I would be able to "steer" the interview for the most part, but that the interviewers would ask me to clarify and/or go deeper into certain areas. Also, I was told that the interviewers will request additions and changes to things I am proposing. They will also prompt me on why I am using certain technologies and methods.

I have little system design experience. I think I have pretty decent knowledge of HTML, CSS, and (React) component design. However, I am less experienced with things like HTTP/API requests (caching, cookies, security, CORS, potentially web sockets?). I am trying to anticipate what questions may arise in this field that specifically relate to making reservations, but because I am ignorant on the topics, I'm having trouble coming up with ideas.

Off the top of my head, I anticipate having to deal with answering questions around:

  • "holding" a while a customer is completing the reservation ("We will hold this room for the next 14 mins, 59 seconds while you checkout.")

  • changing/canceling a reservation

  • maybe a calendar picker component? (but I doubt it this)

Thanks.

(cross posted as a comment in the daily r/cscareerquestions, daily discussion thread:
https://www.reddit.com/r/cscareerquestions/comments/ghirvf/interview_discussion_may_11_2020/)


r/CS_Questions • • Dec 03 '19

Is the company I interviewed at today outdated?

9 Upvotes

This place I interviewed at today seems a little outdated to me, but maybe I'm just not familiar enough with the industry. It's for a position as a c++ developer where everything they do is in c++. The developer team is only 5 people and the guy who interviewed me is one of the founders of the company. He said they have around 40 modules that are around a million lines of code each. He went into a bit of a rant about how c++ is and always has been the best language, and how cloud storage is a terrible idea (his example was "would you be comfortable having all of your banking information on the cloud?"). My last question before I left was if they had to start over, rebuilding the company from the ground up starting now, what would they do differently and he said nothing. Is this weird, or am I just not used to how this industry works?


r/CS_Questions • • Jul 19 '19

Laid off for the second time (non performance) in 6 months

9 Upvotes

Currently my life sucks.

Brief profile

I have a masters in Computer engineering, and around 5 years of experience as a Software developer in Test

I was working in Utah for a established eCommerce company for a year. Decent pay and a great learning experience. They have been trying to sell for sometime now and as part making of them more attractive to buyers, they went for an undersizing. i survived one round of lay off but then I was laid off along with another 200 people.

I have been wanting to move to a bigger city for a long time, and have been applying to positions in NYC and SFO. I joined a well funded start - up after the layoff in utah and worked there for 3 months before i got a call from a well known music app company in NYC. I cracked the interview, got a decent relocation package and moved my family from Utah to NYC. 120k Salary plus relocation. I have been working since start of May.

Now to my misfortune, the NYC company also decided to undergo undersizing before they go for an IPO in the next few months.

I am new to NYC and have been applying to through different job portals/Linkedin. But i don't think i have a whole sense of the best way to approach job hunt here. I need to find something quick, since i have family with me, but i do want to make sure the next employer is more stable than the my previous ones..

Any suggestions of job hunt in NYC/leads and advice on zeroing on more stable companies are welcomes..


r/CS_Questions • • May 20 '19

How good is Hackerrank Interview Preparation Kit if I am a fresher (undergraduate) applying for placements ?

9 Upvotes