All Projects → ysh329 → sword-x-offer

ysh329 / sword-x-offer

Licence: other
66 classic and common interview problems from 《剑指offer》 with multiple-method-CPP solutions, and common data structure summary, etc

Projects that are alternatives of or similar to sword-x-offer

Lintcode
📘 C++11 Solutions of All 289 LintCode Problems (No More Updates)
Stars: ✭ 570 (+2900%)
Mutual labels:  data-structure, interview-questions
Interactive Coding Challenges
120+ interactive Python coding interview challenges (algorithms and data structures). Includes Anki flashcards.
Stars: ✭ 24,317 (+127884.21%)
Mutual labels:  data-structure, interview-questions
Datastructures Algorithms
This repo contains links of questions and their solution for interview prepration from geeksforgeeks, leetcode, etc.
Stars: ✭ 262 (+1278.95%)
Mutual labels:  data-structure, interview-questions
Leetcode Solutions
🏋️ Python / Modern C++ Solutions of All 2111 LeetCode Problems (Weekly Update)
Stars: ✭ 2,787 (+14568.42%)
Mutual labels:  data-structure, interview-questions
algorithm-base
一位酷爱做饭的程序员,立志用动画将算法说的通俗易懂。我的面试网站 www.chengxuchu.com
Stars: ✭ 9,824 (+51605.26%)
Mutual labels:  interview-questions
InterQues
Let's find the list of questions and collaborate
Stars: ✭ 74 (+289.47%)
Mutual labels:  interview-questions
fun-rec
推荐系统入门教程,在线阅读地址:https://datawhalechina.github.io/fun-rec/
Stars: ✭ 1,367 (+7094.74%)
Mutual labels:  interview-questions
Java-Rule-Book
Basic concepts of Java to answer any question about how Java works
Stars: ✭ 36 (+89.47%)
Mutual labels:  interview-questions
leetcode
✍️ 200+ LeetCode solutions in Java
Stars: ✭ 53 (+178.95%)
Mutual labels:  data-structure
algoexpert-data-structures-algorithms
A collection of solutions for all problem statements on the AlgoExpert Coding Interview platform.
Stars: ✭ 134 (+605.26%)
Mutual labels:  interview-questions
flutter-interview-questions
flutter interview questions with answers
Stars: ✭ 169 (+789.47%)
Mutual labels:  interview-questions
dev-recruitment
👨🏼‍💻 Test your developer skills. Questions and answers at various levels (from junior developer up to senior developer).
Stars: ✭ 19 (+0%)
Mutual labels:  interview-questions
Avid-Algorithms
Basic knowledge of Data Structure and Algorithms and LeetCode solution in Python & C++.
Stars: ✭ 12 (-36.84%)
Mutual labels:  interview-questions
Coder
求职信息 组队刷题 经验交流
Stars: ✭ 22 (+15.79%)
Mutual labels:  interview-questions
js-data-structures-and-algorithms
JavaScript implementations of common data structure and algorithm concepts.
Stars: ✭ 31 (+63.16%)
Mutual labels:  data-structure
Python
Repository for Python codes and algos. Star the repo too.
Stars: ✭ 102 (+436.84%)
Mutual labels:  interview-questions
React-Interview-Questions
During the last three years had a lot of react interview questions so i decided to collect them all in one place to help other have an idea of most asked react questions , so if you have any more questions feel free to make a pull request and add your question along with its answer .
Stars: ✭ 37 (+94.74%)
Mutual labels:  interview-questions
mobx-collection-store
Data collection store for MobX
Stars: ✭ 36 (+89.47%)
Mutual labels:  data-structure
Programming-Reference
Open repository of programming topic for reverse engineering purpose.
Stars: ✭ 25 (+31.58%)
Mutual labels:  data-structure
fixie-trie
Compact tries for fixed-width keys
Stars: ✭ 23 (+21.05%)
Mutual labels:  data-structure

真正的希望必定存在于甘心赴死的绝望中

logo

sword-x-offer

sword-x-offer not only contains 66 common && classic interview programming problems but also others like common data structure summary based in language CPP etc. Particularly, each problem has multiple solutions.

Content

  1. Problem Set
    1.1 Ordered List
    1.2 Topic List
    1.2.1 binary-search
    1.2.2 linked-list
    1.2.3 binary-tree
    1.2.4 dynamic programming
  2. Data Structure(TODO)
    2.1 binary-search
    2.2 linked-list
    2.3 string
    2.4 tree
    2.5 sort
    2.6 graph
  3. Language CPP(TODO)
    3.1 Style: Google C++ Style Guide
    3.2 Common C/C++ questions
    3.3 gcc five minute
    3.4 basic cpp language
    3.5 system design
    3.6 Deep Learning questions
  4. Project Based Learning
  5. License
  6. Acknowledge

1.Problem Set

1.1 Ordered List

id problem topic difficulty OJ link similarity
01 find-value-in-matrix binary-search ★★★ nowcoder
02 replace-space string ★★★ nowcoder
03 print-linked-list-from-tail linked-list ★★★ nowcoder
04 reconstruct-binary-tree tree ★★★★ nowcoder
05 stack-operation-based-two-queues queue ★★ nowcoder
06 min-num-in-reverse-array array ★★ nowcoder
07 fibonacci-sequence loop/recursion,dp ★★ nowcoder
08 jump-floor loop/recursion,dp ★★ nowcoder
09 jump-floor-II loop/recursion ★★ nowcoder
10 rectangle-cover loop/recursion ★★★ nowcoder
11 number-of-one-in-binary bit-manipulation ★★★ nowcoder
12 integer-power-of-number ★★★ nowcoder
13 reorder-array-as-odd-number-is-in-the-front array ★★★ nowcoder
14 countdown-k-node-in-linked-list linked-list ★★ nowcoder
15 reverse-linked-list linked-list ★★★ nowcoder
16 merge-two-sorted-linked-list linked-list ★★★ nowcoder
17 judge-the-substructure-of-a-binary-tree tree ★★★★ nowcoder
18 mirror-of-binary-tree tree ★★★★ nowcoder
19 print-matrix-clockwise array ★★★★ nowcoder
20 stack-contain-min-func stack ★★★ nowcoder
21 push-and-pop-sequence-of-stack stack ★★★★ nowcoder
22 print-binary-tree-from-top-to-bottom tree ★★★ nowcoder
23 postorder-traversal-of-binary-search-tree tree ★★★★ nowcoder
24 target-length-path-of-binary-tree tree ★★★★ nowcoder
25 replication-of-complex-linked-list linked-list ★★★★ nowcoder
26 convert-binary-search-tree-to-bi-directional-linked-list tree,linked-list ★★★★ nowcoder
27 string-permutation string,math ★★★★ nowcoder
28 the-number-occurs-more-than-half array ★★★ nowcoder
29 k-minimum-number array,heap ★★★★ nowcoder
30 the-largest-sum-of-consecutive-subarrays greedy,dp ★★★★ nowcoder
31 number-of-1-between-1-and-n math ★★★★ nowcoder
32 arrange-the-array-into-the-smallest-number ★★★ nowcoder
33 ugly-number math ★★ nowcoder
34 first-character-that-appears-only-once array,hash-table ★★ nowcoder
35 inverse-pairs-in-array array,math ★★★★★ nowcoder
36 find-first-common-node-in-two-linked-lists linked-list ★★★ nowcoder
37 number-of-occurrences-in-the-sorted-array array,hash-table ★★ nowcoder
38 depth-of-binary-tree tree ★★ nowcoder
39 judge-balanced-binary-tree tree ★★★★ nowcoder
40 find-num-appear-once-in-array array,hash-table ★★★★ nowcoder
41 sum-s-of-continuous-positive-sequence ★★ nowcoder
42 two-sum ★★ nowcoder
43 left-rotate-string string ★★★ nowcoder
44 reverse-words-in-sentence string ★★★★ nowcoder
45 is-poker-continuous ★★★ nowcoder
46 the-last-number-in-the-circle math ★★★★ nowcoder
47 sum-from-1-to-n ★★ nowcoder
48 sum-of-two-numbers bit-manipulation ★★★ nowcoder
49 str-to-int string,array ★★★★ nowcoder
50 duplicate-number-in-array array,hash-table ★★★ nowcoder
51 construct-multiply-triangle array ★★ nowcoder
52 regular-expression-match string ★★★★ nowcoder
53 numeric-string string ★★★★ nowcoder
54 first-appearing-once-in-str-stream string ★★ nowcoder
55 entry-of-loop-linked-list linked-list ★★★ nowcoder
56 delete-duplication-in-linked-list linked-list ★★★★ nowcoder
57 next-node-of-binary-tree tree ★★★★ nowcoder
58 is-symmetrical-binary-tree tree ★★★ nowcoder
59 print-binary-tree-layer-by-layer tree ★★★ nowcoder
60 print-binary-tree-layer-by-layer-II tree ★★★ nowcoder
61 serialize-binary-tree tree ★★★★ nowcoder
62 kth-node-of-binary-search-tree tree ★★★★ nowcoder
63 get-median-of-num-stream tree ★★★ nowcoder
64 max-in-sliding-window stack/queue ★★★ nowcoder
65 path-in-matrix backtracking ★★★★ nowcoder
66 range-of-robot backtracking ★★★★ nowcoder

1.2 Topic List

Binary Search

Linked List

Binary Tree

Dynamic Programming

2.Data Structure

3.Language CPP

5.License

Apache License 2.0.

6.Acknowledgement

Solutions in sword-x-offer are mainly from the forum of nowcoder and book 《剑指offer》. Particularly, I learned a lot from the forum of nowcoder.

Project-based-learning is from this repo., which is under MIT License.

Judge Script

#!bin/bash
while true;
do
./data
./std
./test
if diff std.out test.out;then
echo AC
else
echo WA
exit 0
fi
done
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].