• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:05
CET 21:05
KST 05:05
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Intel X Team Liquid Seoul event: Showmatches and Meet the Pros9[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3
Community News
Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win52025 RSL Offline Finals Dates + Ticket Sales!10BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION2Crank Gathers Season 2: SC II Pro Teams10Merivale 8 Open - LAN - Stellar Fest5
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" Intel X Team Liquid Seoul event: Showmatches and Meet the Pros Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win Weekly Cups (Oct 13-19): Clem Goes for Four DreamHack Open 2013 revealed
Tourneys
Merivale 8 Open - LAN - Stellar Fest SC4ALL $6,000 Open LAN in Philadelphia Kirktown Chat Brawl #9 $50 8:30PM EST 2025 RSL Offline Finals Dates + Ticket Sales! Crank Gathers Season 2: SC II Pro Teams
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Ladder Map Matchup Stats Map pack for 3v3/4v4/FFA games BW General Discussion SnOw's ASL S20 Finals Review
Tourneys
[ASL20] Grand Finals BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION Small VOD Thread 2.0 The Casual Games of the Week Thread
Strategy
How to stay on top of macro? PvZ map balance Current Meta Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread The Perfect Game Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Russo-Ukrainian War Thread Canadian Politics Mega-thread The Big Programming Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023 2024 - 2026 Football Thread NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
more word salad -- pay no h…
Peanutsc
Career Paths and Skills for …
TrAiDoS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1675 users

C++ algorithm and datastructure interview

Blogs > betaben
Post a Reply
betaben
Profile Blog Joined September 2007
681 Posts
Last Edited: 2010-01-22 21:18:09
January 22 2010 21:16 GMT
#1
I'm applying for my first c++ job and have a interview; they say most people fail at "algorithms" and "data structures". Having essentially self-taught myself C++ and not taken a computer science degree, I don't really know what to expect. So, are there any computerscience majors who can tell me what to revise?

So far, I have covered :
-bubble, insertion, selection, shell, heap, binary, merge and quick sorts;
-searches based on traversals of trees, A*, B*;
-max, binomial, fibbonachi heaps;
-binary trees, red-black, AVL, splay;
-tries;
-B-trees, B*trees;
-linked lists, doubly linked lists, skip lists;
-cyclic list indentification algorithms;
-random number generation;
-hash tables.

the aim is to get to logn on the following url:http://www.indiangeek.net/programmer-competency-matrix/

but I don't know what else is common knowledge in computer science majors.

there are a shit load of algorithms:
http://en.wikipedia.org/wiki/List_of_algorithms
data structures:
http://en.wikipedia.org/wiki/List_of_data_structures
and numerical algorithms:
http://en.wikipedia.org/wiki/List_of_numerical_analysis_topics

so can someone tell me on what I should concentrate?

(If there is no better suggestion, I think I'd stick with graph algorithms.)

ps I recently found this internet radio site: http://musicovery.com/index.php


fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
January 22 2010 21:26 GMT
#2
hm, im no computer science major yet, but as far as i know you have listed all the basics.

i've posted this in another c++ blog, but i will say it again, learn design patterns. I guess they will ask you how the Singleton pattern works, what in the hell is the Observer pattern and so on. And, even if they dont ask it, you will be amazed with the ease it will bring you for coding your systems in the future.

just an important note: im still very unexperencied with the real world jobs, so dont take my 'advice' as basis.
"When the geyser died, a probe came out" - SirJolt
CommanderFluffy
Profile Joined June 2008
Taiwan1059 Posts
January 22 2010 21:37 GMT
#3
My advice to you is just to make sure you can explain things like linked lists and heaps in 'kid language.' Companies will definitely ask you simple stuff like that before asking you for on the spot algorithms. A lot of people might know how a linked list or hash table works, but they have trouble articulating what they know. As for being prepared for the algorithmic tests they may give you, i think you just gotta be able to think fast and come up with efficient code and a solid concept behind your thinking process.
Pain is temporary, but glory is forever.
betaben
Profile Blog Joined September 2007
681 Posts
Last Edited: 2010-01-22 21:48:56
January 22 2010 21:44 GMT
#4
awesome! I was completely unaware of design patterns (although i might have been loosely following one without knowing) so, I'll get those in my arsenal. although it doesn't fit into algorithms and data structures, I've also been looking at development methodologies such as extreeme and agile, which seem quite useful. Thanks!

edit: cheers, fluffy! makes me feel a bit more confident.
illu
Profile Blog Joined December 2008
Canada2531 Posts
January 22 2010 21:53 GMT
#5
Unfortunately, you might be interviewed by someone who DOES have a degree in computer science. So regardless of the functionalities of these things in practice, you should always send as much time as you can learning them.
:]
ms291052
Profile Joined April 2008
United States24 Posts
January 22 2010 22:21 GMT
#6
TBH, it looks like you're already pretty much set. You know *way* more algorithms than will come up on an interview. B*? Are you kidding me? I bet your boss will scarcely have heard of it.

Design pattern stuff is nice though. Singletons, visitors, observers, et cetera come up fairly often. It's mostly common sense stuff that you probably "invented" yourself and have been using forever if you taught yourself, but it's nice to formalize and learn the names.

No sweat though brah. Just remember, 99% of your competition is terribads.
PaiNt)
Profile Joined June 2009
United States38 Posts
Last Edited: 2010-01-22 22:32:45
January 22 2010 22:27 GMT
#7
I'm currently majoring in Computer Science and just took a Data Structures and Algorithms class last semester. I think the algorithms you've covered are most of the important ones. The Data Structures that we covered were:
-Lists (Ordered and Unordered) (Array based, singly linked and doubly linked)
-Stacks (Array and linked)
-Trees (Binary Search)
-Hash Tables (You should understand how hash functions work or at least what the point of one is)
-Heaps
-Graphs (Weighted graphs can be useful)

We also did some more simple things like making our own string class and managing our own memory using dynamic allocation and the memcpy function.
You should also understand template classes very well as all of these data structures can benefit from them.

If you have any questions on these things let me know. (I still have all the code for these on my computer)

EDIT:
this gave me a good laugh
betaben
Profile Blog Joined September 2007
681 Posts
January 22 2010 22:50 GMT
#8
right. that's encouraging that I'm on the right track. thank you for you collective advice!
fabiano
Profile Blog Joined August 2009
Brazil4644 Posts
January 22 2010 23:48 GMT
#9
one more tip, if you want a light, easy and fun read to learn design patterns, take a look at the 'Head First Design Patterns' book.

http://oreilly.com/catalog/9780596007126

At first you will look at the pages with lots of drawing and figures and will think 'wtf? this is a childrens book...', but dont be fooled, this is a great book.

cheers and good luck!
"When the geyser died, a probe came out" - SirJolt
lepape
Profile Joined November 2005
Canada557 Posts
Last Edited: 2010-01-23 02:36:20
January 23 2010 02:30 GMT
#10
I'm surprised someone can learn C++ by himself and reach a level that would get him a job interview without having any degree, I always assumed this kind of approach had it's limit.

That said, I don't know anything about programming, so good luck,
haduken
Profile Blog Joined April 2003
Australia8267 Posts
January 23 2010 03:13 GMT
#11
^ It's definitely possible given the fact that most computing resources and study materials are available over the internet.
Rillanon.au
Elvin_vn
Profile Blog Joined March 2004
Vietnam2038 Posts
January 23 2010 03:22 GMT
#12
but u need a degree nevertherless

it's a polictical stuff
do not agrue with idiots, they will pull you down to their level and beat you with their experiences
Please log in or register to reply.
Live Events Refresh
BSL 21
19:00
Open Quali #3
LiquipediaDiscussion
SC4ALL
14:00
SC4All Day 1
LiquipediaDiscussion
SC4ALL
14:00
SC4ALL - Day 1
Artosis875
RotterdaM653
ComeBackTV 650
IndyStarCraft 196
CranKy Ducklings187
SteadfastSC177
LiquipediaDiscussion
Epic.LAN
12:00
Epic.LAN 46 Playoffs Stage
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 653
IndyStarCraft 196
SteadfastSC 177
ProTech98
BRAT_OK 62
CosmosSc2 42
MindelVK 13
StarCraft: Brood War
Calm 3291
Dewaltoss 76
ZZZero.O 66
HiyA 24
Terrorterran 9
Dota 2
monkeys_forever507
LuMiX1
Heroes of the Storm
Khaldor281
Liquid`Hasu236
Other Games
Grubby2144
FrodaN2069
Beastyqt959
fl0m949
Artosis875
Hui .149
ToD109
QueenE100
Skadoodle90
Pyrionflax67
Mew2King50
nookyyy 39
KnowMe0
Organizations
Other Games
gamesdonequick1637
StarCraft 2
angryscii 21
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• printf 41
• Adnapsc2 12
• intothetv
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• Azhi_Dahaki39
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2461
• WagamamaTV447
• Ler74
League of Legends
• Nemesis3628
Other Games
• imaqtpie1145
• Shiphtur210
Upcoming Events
BSL Team A[vengers]
17h 55m
Cross vs Sobenz
Sziky vs IcaruS
SC4ALL
18h 55m
SC4ALL
18h 55m
BSL 21
22h 55m
Replay Cast
1d 12h
Wardi Open
1d 15h
Monday Night Weeklies
1d 20h
Replay Cast
2 days
Sparkling Tuna Cup
2 days
WardiTV Korean Royale
2 days
[ Show More ]
Replay Cast
3 days
WardiTV Korean Royale
3 days
The PondCast
4 days
Korean StarCraft League
6 days
CranKy Ducklings
6 days
IPSL
6 days
dxtr13 vs OldBoy
Napoleon vs Doodle
Liquipedia Results

Completed

CSL 2025 AUTUMN (S18)
CranK Gathers Season 2: SC II Pro Teams
Eternal Conflict S1

Ongoing

BSL 21 Points
BSL 21 Team A
C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
SC4ALL: Brood War
SC4ALL: StarCraft II
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025

Upcoming

YSL S2
BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
Stellar Fest
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.