Vector & List VectorItems are stored in contiguous memory and assigned their own slots. Each item in Vector can be accessed by index and new items can be inserted at the end or in the middle.Vector automatically deletes [] to prevent memory leaks. Syntax for Vector vector variable_name (number of elements); ListList can be inserted and deleted at every position. If insertion and deletion are fre..
Virtual Function return data type must be the same.It is better not to use it when calls are frequent because a program can get slow.The reason for using a virtual function is the same as that of inheritance. The member function can be called as an object of the parent class. Example code 1234567891011121314151617181920212223242526272829303132333435363738394041424344class Fruit {protected: strin..
Friend Friend allows access to members and methods declared private or protected by other classes or functions of other classes. It is used only in unavoidable situations such as operator overloading because it is in violation of encapsulation. Example code 12345678910111213141516171819202122232425262728293031using namespace std; class Apple; //forward declaration class Banana{private: int m_cou..
Templates in C++ Templates in C++ are a function or a class to implement with multiple data types using templates. Templates are the basic part of the *generic programming. The template has two different types, Function template and Class template. Generic programmingGeneric programming is a programming method that can increase the reusability by focusing on a way in which one value can have mul..
Exception handling in C++ Exception handling is the method you use to make the program work normally under abnormal circumstances(with different errors) but Try, Throw and Catch can't replace every error handling circumstance because it could cause poor performance. It is good to use for the situation which happened difficult to predict the result. But, Try, Throw and Catch strictly handle type ..
Inline function In C++, Inline function increases efficient performance to prevent function call overhead, if a small function has to be repeated. However, the inline function is not a command, which means compiler may ignore the request. Additionally, even though every function are changed to the inline function, it doesn't guarantee that it increases efficiency all the time because compiler de..
- Total
- Today
- Yesterday
- code refactoring
- hackerrank javascript
- math.max
- repeat()
- 프로그래머스 알고리즘
- ... in Javascript
- 프로그래머스 알고리즘문제
- algorithm
- rest parameter
- equals()
- java
- 프로그래머스
- hackerrank javascript solution
- spring boot application
- javascript
- HackerRank Algorithm
- hackerrank
- 알고리즘
- HashMap
- substring()
- easy algorithm
- compareTo()
- Object type casting
- Javascript Algorithm
- C++
- easy javascript algorithm
- Collection Framework
- string class in java
- hackerrank solution
- math.abs
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |