- Access
- Avaloq
- Get TASK parameter value in DTM for usage in report LAYOUT
- Hide task parameters from the underlying procedure
- C
- C++
- Undirected unweighted graph adjacency list shortest path with breadth first search
- Convert string to uppercase or lowercase
- Check string contains only digits
- Good random generator
- Rock! Paper! Scissors! Fight!
- Java
- Arrays
- Find whether an array can be partitioned in K subsets of equal sum
- Find whether all elements in array can be arranged in pairs where each element is double the other in the pair
- Find index in circular array where rolling sum from there never falls below zero
- Max subarray product
- Smallest partition for all elements on the left less than or equal to every element on the right
- Count out of order pairs in array
- FourSums find four elements in array that sum up to K
- Find subarray with target sum
- Maximum product of three elements in the array
- Find all pairs with difference K
- Move zero elements at end of array preserving order of others
- Number of elements with unobstructed view
- Determine final position of falling domino pieces
- Find minimum length subarray of sum K
- Find maximum for all subarrays of length K
- Find all duplicates in array of positive numbers in range 1 to N
- Longest sequence of consecutive numbers
- Pair of values from two arrays with closest sum to given target
- Find max sum of non adjacent elements including negatives and zeros
- Find first missing positive integer in array with zeros and duplicates
- Partition integer array moving all zeros and negative values at the end
- Find integer subarray that sums up to 0, allowing zeros in input
- Find all triples of numbers that sum up to a given target
- Merge multiple sorted arrays
- Product of all elements in an array excluding each element at its position
- Find pair of numbers that sum up to given number
- Longest increasing or decreasing subsequence
- Find minimum highest calculated value from ordered collection
- Swap array elements using a third constant element
- Find index placement to minimize total travel time on array
- Find the largest sum subarray in an integer array - Kadane's algorithm
- Reverse words in a character array
- Maximise alternate choices on array
- Generate random array permutation using Knuth shuffle
- Find maximum capacity of 2-D object
- Partition array in constant time and space
- Moments when all light bulbs are on in uninterrupted sequence
- Binary Trees, Binary Search Trees
- Collect all nodes at a given level
- Find deepest node of tree
- Test is binary tree is symmetric or mirrored
- Binary tree right side view
- Find floor and ceil of item in BST
- Invert BST
- Serialize and deserialize a binary tree to a string
- Check if two binary trees are equal
- Test whether a given binary tree is also a valid binary search tree
- Iterative inorder binary tree traversal
- Find N-th smallest element in binary search tree
- Find second largest element in a binary search tree
- AVL tree implementation
- Implement locking mechanism using a tree
- Determine if a binary tree is complete
- Determine if a binary tree is balanced
- Binary tree find height
- Reconstruct binary tree from visits
- Binary Tree visits
- Binary search tree find the distance between two nodes with the parent pointer approach
- Binary search tree find the distance between two nodes with the LCA approach
- Binary search tree find the distance between two nodes with the path lists approach
- Bit manipulation and Numbers
- Calculate angle formed by clock hands
- Distribute items uniformly in buckets
- Amount of trailing zeros in factorial
- Generate kth number made only of multiples of 3, 5 or 7
- Make biggest number from list of integers
- Reverse integer, reverse bits in number
- Find missing number in array of unique elements in range 0 to N
- Count number of bits set to 1 for a range of numbers
- Sum two integers without using sum operator
- Increment number without using sum operator
- Calculate nth root
- Find smallest bigger number than given one using same digits
- Euclid GCD and LCM
- Find two missing numbers in distinct array using bit manipulation
- Test if two numbers respect Gray code
- Circular right and left bit rotations
- Loop digits in number
- Count set bits in byte
- Set bit in byte
- Check if number is power of two
- Compute power of two modulus
- Right propagate first set LSB
- Find first set LSB
- Dynamic Programming
- Longest increasing subsequence
- Simple regular expression matcher
- N queens
- Subset of target sum
- Reconstruct sentence from text - word break
- Longest alternating subsequence
- Catalan numbers - number of ways to build a binary tree with N nodes
- Longest palindromic subsequence
- Longest common subsequence
- Minimum cost of painting houses using K colors without repeating adjacent colors
- Maximum profit of cutting rod in pieces
- Number of subsequences that sum up to K
- Count all square matrix of sum K
- 0/1 knapsack with dynamic programming
- Maximise alternate choices on array improved with dynamic programming
- Unbounded knapsack algorithm with input preprocessing
- 0/1 knapsack O(n log n) heuristic and fractional knapsack solution
- makeBricks and makeChocolate exercises
- Compute the square root of a BigInteger
- Efficient Fibonacci algorithm implementation
- Fast Fibonacci algorithm for big numbers
- Geometry
- Graphs
- Prim's algorithm to find a MST
- Union find
- Satisfiability of equations (valid graph coloring)
- Two coloring (bipartition)
- Find all paths between two vertices in a DAG
- Eulerian path that traverses all edges
- Count how many subsequences of array sum up to target
- How many ways can a target number be reached using given steps
- Coin change algorithm
- Minimum number of edges to create fully connected graph from given start vertex
- Path-based strongly connected components in a directed graph
- Tarjan strongly connected components in a directed graph
- Kosaraju strongly connected components in a directed graph
- Graph topological sorting
- Bellman Ford algorithm for graph with negative cycle
- Lists, Stacks, Queues, Heaps
- Find length of longest filesystem path using stack
- Remove consecutive nodes whose sum is zero
- Find intersection of singly linked lists
- Reverse stack without using additional data structures
- Find k-th most frequent element
- Top K values as of given filter with olympic ranking option
- Decompress number[string] strings using a stack
- Find maximum number of overlapping entries in a time series
- Convert infix expression to postfix notation
- Calculate expressions using postfix notation
- Zip linked list
- Reverse linked list
- Calculate maximum difference in sequential list
- Merging lists with holes
- Reverse doubly linked list
- Sum of positive integers represented as linked lists with least significant digit in the head
- Rolling, moving, running, median
- Remove k-th to last element from single linked list
- Remove duplicates from single linked list in constant space
- Matrices
- Shortest path with at most K obstacle deletions
- Toeplitz matrix
- Spiral visit
- Ways to traverse a grid moving only in two directions
- Find word in matrix using Knuth–Morris–Pratt algorithm
- Find word in matrix
- Remove all grouping of ones that are not connected to the borders
- Check if two matrix are equal
- Find value in sorted matrix
- Find largest square grouping of values in a given matrix
- Concise logic for multi dimensional neighbour evaluation
- Find biggest matrix group value
- Searching
- Find minimum element in rotated sorted array of unique elements
- Binary search on rotated array of unique elements
- Find all duplicates between two sorted arrays
- Binary search first and last occurrence
- Binary search
- Binary search to find duplicate element in unsorted array
- Brent and Floyd cycle detection algorithms
- Find duplicate in pigeonhole array
- Sets
- Sorting
- Strings, Tries, Suffix Trees
- Group anagrams
- Check if a string can be rotated into another one
- Check if a forced swap can make two strings equal
- Break palindrome
- Simplify unix path
- Justify text
- Decode length compressed string
- Shortest unique substring
- KMP algorithm for string search
- Wagner-Fischer's algorithm for edit distance
- Levenshtein edit distance
- Minimum number of characters to delete from string to generate a dictionary word
- Longest substring with K distinct characters
- Longest common substring
- Count in how many ways can a message be decoded
- Manacher's algorithm to find longest substring which is also a palindrome in linear time
- Find longest substring which is also a palindrome
- Find longest substring without repeated characters
- Find all words that can be created from a given phone number in linear time
- Find all words that can be created from a given phone number
- Aho-Corasick trie for string searching and match
- Find if two strings are interleaved
- Regular expressions matching
- Word squares generator
- Find longest word from a list that can be built as a subsequence of a given word
- Recursively generate set of string permutations
- Count and say sequence
- Compress string by counting character repetitions
- Find most consecutive repeated character in string
- Check if a string is palindrome
- Trie data structure for input text prediction and suggestions
- Scorecard algorithm
- Structures
- Matlab
- Filter a tomographic image in Fourier's space
- SIRT - Simultaneous Iterative (algebraic) Reconstruction Technique
- EM - Expectation Maximization reconstruction technique
- PHP, JavaScript, XML, HTML
- PageRank implementation
- Rete sociale
- API mashup
- Social network graph
- Create XLS document
- Send mail with attachment using PEAR
- Use image as input button
- PL/SQL
- Oracle integer to binary
- Test a string for a numeric value
- Oracle ORA-21000 "error number argument to raise_application_error of X is out of range"
- Oracle invoke WS and parse the response
- Oracle execute procedure
- Oracle IF SELECT statement
- Oracle update table while cycling on it
- Oracle create and call Java procedure to read directory content
- Oracle send SMTP multi line mail with autentication
- Oracle read, parse and store data from an XML file
- Oracle skip to the end of a loop without continue statement
- Oracle insert rowtype value
- Oracle duplicate row changing a value in a single column
- Oracle convert BLOB to CLOB
- Oracle query data in XML BLOB
- SQL LIKE escape special characters
- Split string into array by delimiter
- Prolog
- Python
- CLI menu and command line options
- Sentiment analysis with NLTK
- Get Twitter tweets with Tweepy
- Get Reddit posts with PRAW
- BloggerBackup command line utility to backup Blogger posts
- Twitter tweets analysis
- Map/Reduce examples
- HTTP POST
- SQL
- Use sub query in JOIN statement
- GIS
- Database catena hotel
- Oracle LIMIT clause
- String to Date
- Select column, max(count(column))
- Left and Right Join inside WHERE condition
- Difference in months/years between two dates
- SQL Server SELECT FROM DUAL
- SQL Server string concatenation and functions
- SQL Server change collation during query
- Oracle function return table dataset multiple rows
- SQL WITH clause query alias
- Reuse a query with different filters inside the same SELECT statement
- Insert & character in a field in Oracle
- Pass namespace parameter to Oracle EXTRACT and EXTRACTVALUE XML functions
- Oracle extract value from XML object node
- Specify ORDER BY values in query for user defined sorting
- Oracle align sequence values after database import
- Oracle insert multiple rows with single query
- Oracle get MAX or MIN between multiple values
- Oracle check if nested table is empty
- Oracle get unnamed nested table column value
- Oracle SELECT TOP
- Matrix multiplication and data analysis
- Oracle SELECT FROM list of strings
- Oracle get DDL statement via SQL query
- Oracle get user tablespace quota
- Oracle get table size on disk
- Oracle count elements in collection
- TIBCO
- Spotfire export data table with script
- Spotfire apply marking with script
- Spotfire set filter value with script
- Spotfire calculate trend (cumulative sum)
- Spotfire Excel connection template
- Spotfire SAP HANA connection template
- Spotfire OSI PI connection template
- Compress plug-in for BusinessWorks6 to add compress and extract activities
- BusinessEvents listen for ActiveSpaces notifications
- Set up shared all persistence in ActiveSpaces
- Spotfire get data from marking inside IronPython script
- Spotfire send JMS message
- TypeScript
- Verilog
- Visual Basic/Visual Basic for Applications
Source Code
Subscribe to:
Posts (Atom)