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
468
First Occurrence
C++
0
0
461
169. Tower of Hanoi
C++
0
0
667
Check if a given binary tree is symmetric.
C++
0
0
591
Get Keys In Binary Search Tree - unfinished
C++
0
0
493
102. Binary Tree Level Order Traversal
C++
0
0
472
K Smallest In Unsorted Array
C++
0
0
466
35. Search Insert Position
C++
0
0
454
872. Leaf-Similar Trees
C++
0
0
499
559. Maximum Depth of N-ary Tree
C++
0
0
681
636. Exclusive Time of Functions
C++
0
0
496
636 Exclusive Time of Functions - rewrote
C++
0
0
514
102. Binary Tree Level Order Traversal
C++
0
0
507
347. Top K Frequent Elements
C++
0
0
474
BFS of graph
C++
0
0
508
DFS of graph
C++
0
0
449
841. Keys and Rooms
C++
0
0
514
841. Keys and Rooms
C++
0
0
475
207. Course Schedule
C++
0
0
542
125. Valid Palindrome
C++
0
0
537