Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
C++ snippets by Yuqiong Li
Classical Binary Search
C++
0
0
532
First Occurrence
C++
0
0
523
169. Tower of Hanoi
C++
0
0
770
Check if a given binary tree is symmetric.
C++
0
0
687
Get Keys In Binary Search Tree - unfinished
C++
0
0
561
102. Binary Tree Level Order Traversal
C++
0
0
547
K Smallest In Unsorted Array
C++
0
0
531
35. Search Insert Position
C++
0
0
509
872. Leaf-Similar Trees
C++
0
0
553
559. Maximum Depth of N-ary Tree
C++
0
0
793
636. Exclusive Time of Functions
C++
0
0
551
636 Exclusive Time of Functions - rewrote
C++
0
0
572
102. Binary Tree Level Order Traversal
C++
0
0
584
347. Top K Frequent Elements
C++
0
0
538
BFS of graph
C++
0
0
561
DFS of graph
C++
0
0
501
841. Keys and Rooms
C++
0
0
572
841. Keys and Rooms
C++
0
0
537
207. Course Schedule
C++
0
0
610
125. Valid Palindrome
C++
0
0
606