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
543
First Occurrence
C++
0
0
534
169. Tower of Hanoi
C++
0
0
790
Check if a given binary tree is symmetric.
C++
0
0
700
Get Keys In Binary Search Tree - unfinished
C++
0
0
572
102. Binary Tree Level Order Traversal
C++
0
0
558
K Smallest In Unsorted Array
C++
0
0
540
35. Search Insert Position
C++
0
0
518
872. Leaf-Similar Trees
C++
0
0
565
559. Maximum Depth of N-ary Tree
C++
0
0
815
636. Exclusive Time of Functions
C++
0
0
561
636 Exclusive Time of Functions - rewrote
C++
0
0
583
102. Binary Tree Level Order Traversal
C++
0
0
593
347. Top K Frequent Elements
C++
0
0
548
BFS of graph
C++
0
0
576
DFS of graph
C++
0
0
513
841. Keys and Rooms
C++
0
0
583
841. Keys and Rooms
C++
0
0
551
207. Course Schedule
C++
0
0
623
125. Valid Palindrome
C++
0
0
617