-
MY PROJECTS
-
Recent Posts
- Algo.Java.BitmaskForEvens
- Algo.Java.MonotonicStack
- Java.Algo.Arrays.SeparateDigits
- Algo.Java.Arrays.Intersection
- Algo.Java.Arrays.PriorityQueue
- Algo.Java.DFS.BST.CollectNodesByDepth
- Algo.Java.GetAllSubArrays
- Algo.Java.Dfs.Backtracking
- Algo.Java.IsSameTree
- Algo.Java.DFS.Postorder
- Algo.Java.Arrays.Strings.FrequencyApproach
- Algo.Java.DFS.Theory
- Java.Algo.DFSExample
- Algo.Java.Xor to find difference between strings
- Java.Algo.AllSubArrays
- Linux. Ubuntu.Monitor resources
- Java.Algo.Get sum of Digits from int
-
Java. List
to int[] and backwards - Sql.Execution Order
- Algo.Java.BinarySearch
Categories
- Aptana
- Azure
- C#
- DataSnap
- DBExpress
- Delphi
- Delphi и сети
- Delphi. Язык программирования
- ExtJS
- FastReport
- FireDAC
- FireMonkey
- GIT
- ICS
- IDE
- IIS
- Indy
- InnoSetup
- javascript
- jQuery
- JSON
- LiveBindings
- MSHTML
- MySQL
- PHP
- REST
- Ribbons
- SMS
- SQL инструкции
- SVN
- TRichView
- UniGui
- WebBroker
- WinAPI
- Windows
- Алгоритмы
- Без рубрики
- Деревья
- Ищу ответ
- Компонентостроение
- Мои компоненты
- Начальный уровень
- Обработка исключений
- Парсинг
- Потоки(Threads)
- Регулярные выражения
- Тестирование приложений
Category Archives: Без рубрики
Algo.Java.BitmaskForEvens
To Everyone using nums[ i ] % 2 == 0 to check for even element. Use bitmask to determine even numbers which is fast computation wise.( nums[ i ] & 0x1 ) == 0 instead of nums[ i ] % 2 == 0
Posted in Без рубрики
Leave a comment
Java.Algo.Arrays.SeparateDigits
We can convert integer to string and then get chars, but more effective way is to use / and % operators, here is an example more effective example
Posted in Без рубрики
Leave a comment
Algo.Java.GetAllSubArrays
iterative approach recursive approach
Posted in Без рубрики
Leave a comment
Algo.Java.Dfs.Backtracking
ALL SUBSETS IS NOT ALL SUBARRAYS !!! Lets say we have array with nums 5 1 6, what will be all combinations of these nums ? It’s a tree, so we can traverse it and get all combinations, where we … Continue reading
Posted in Без рубрики
Leave a comment
Algo.Java.DFS.Postorder
find sum find count find max abs difference between left and right find max diameter between left and right
Posted in Без рубрики
Leave a comment