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
520
First Occurrence
C++
0
0
514
169. Tower of Hanoi
C++
0
0
749
Check if a given binary tree is symmetric.
C++
0
0
675
Get Keys In Binary Search Tree - unfinished
C++
0
0
550
102. Binary Tree Level Order Traversal
C++
0
0
537
K Smallest In Unsorted Array
C++
0
0
518
35. Search Insert Position
C++
0
0
498
872. Leaf-Similar Trees
C++
0
0
544
559. Maximum Depth of N-ary Tree
C++
0
0
769
636. Exclusive Time of Functions
C++
0
0
540
636 Exclusive Time of Functions - rewrote
C++
0
0
558
102. Binary Tree Level Order Traversal
C++
0
0
566
347. Top K Frequent Elements
C++
0
0
527
BFS of graph
C++
0
0
550
DFS of graph
C++
0
0
491
841. Keys and Rooms
C++
0
0
559
841. Keys and Rooms
C++
0
0
524
207. Course Schedule
C++
0
0
594
125. Valid Palindrome
C++
0
0
594