• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:30
CET 12:30
KST 20:30
  • 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
Team Liquid Map Contest #22 - Presented by Monster Energy4ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13
Community News
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool22Weekly Cups (March 9-15): herO, Clem, ByuN win32026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12Blizzard Classic Cup - Tastosis announced as captains18
StarCraft 2
General
How to withdraw ☎️+1(415) 864-9785 money from Fide Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Serral: 24’ EWC form was hurt by military service Weekly Cups (March 9-15): herO, Clem, ByuN win Team Liquid Map Contest #22 - Presented by Monster Energy
Tourneys
KSL Week 87 [GSL CK] #2: Team Classic vs. Team Solar 2026 KungFu Cup Announcement [GSL CK] #1: Team Maru vs. Team herO RSL Season 4 announced for March-April
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 517 Distant Threat Mutation # 516 Specter of Death Mutation # 515 Together Forever
Brood War
General
ASL21 General Discussion BGH Auto Balance -> http://bghmmr.eu/ JaeDong's form before ASL Gypsy to Korea BSL Season 22
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL22] Open Qualifiers & Ladder Tours IPSL Spring 2026 is here!
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Zealot bombing is no longer popular?
Other Games
General Games
Nintendo Switch Thread Path of Exile General RTS Discussion Thread Stormgate/Frost Giant Megathread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
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
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Mexico's Drug War Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations Cricket [SPORT]
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 7657 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
Next event in 30m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 166
Lowko151
ProTech8
StarCraft: Brood War
Britney 28707
Sea 2140
Killer 1347
Jaedong 739
Rush 441
BeSt 406
Larva 306
Light 194
EffOrt 178
Stork 177
[ Show more ]
Soma 160
Snow 138
ZerO 119
Sharp 114
Mini 109
hero 91
ToSsGirL 60
Backho 59
Mind 39
Shine 26
soO 26
Barracks 24
[sc1f]eonzerg 23
Bale 22
GoRush 16
Movie 15
NotJumperer 15
Terrorterran 14
Icarus 11
Noble 9
Dota 2
XaKoH 525
XcaliburYe271
canceldota62
Counter-Strike
fl0m1489
Fnx 1361
pashabiceps1255
shoxiejesuss764
x6flipin178
Super Smash Bros
Mew2King67
Westballz18
Other Games
singsing3197
B2W.Neo564
crisheroes249
Sick149
NeuroSwarm43
Trikslyr18
ZerO(Twitch)12
Organizations
Dota 2
PGL Dota 2 - Main Stream194
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• Berry_CruncH243
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 1
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota288
Upcoming Events
WardiTV Team League
30m
Big Brain Bouts
5h 30m
LetaleX vs Babymarine
Harstem vs GgMaChine
Clem vs Serral
Korean StarCraft League
15h 30m
RSL Revival
22h 30m
Maru vs Zoun
Cure vs ByuN
uThermal 2v2 Circuit
1d 3h
BSL
1d 8h
RSL Revival
1d 22h
herO vs MaxPax
Rogue vs TriGGeR
BSL
2 days
Replay Cast
2 days
Replay Cast
2 days
[ Show More ]
Afreeca Starleague
2 days
Sharp vs Scan
Rain vs Mong
Wardi Open
3 days
Monday Night Weeklies
3 days
Sparkling Tuna Cup
3 days
Afreeca Starleague
3 days
Soulkey vs Ample
JyJ vs sSak
Replay Cast
4 days
Afreeca Starleague
4 days
hero vs YSC
Larva vs Shine
Kung Fu Cup
4 days
Replay Cast
5 days
The PondCast
5 days
WardiTV Team League
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-03-18
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
CSL Elite League 2026
RSL Revival: Season 4
Nations Cup 2026
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
CSL 2026 SPRING (S20)
CSL Season 20: Qualifier 1
Acropolis #4
IPSL Spring 2026
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
NationLESS Cup
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
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 © 2026 TLnet. All Rights Reserved.